Using the "or" operator with filter
Roger Eller
roger.e.eller at sealedair.com
Thu Jul 11 11:08:21 EDT 2013
global gCodes
put tList into tGood; put tList into tBad
put "PPX,RRY,NNZ" into gCodes
-- Keep lines that contain any item of gCodes
filter tGood with ("*" & item 1 of gCodes & "*") or ("*" & item 2 of gCodes
& "*") or ("*" & item 3 of gCodes & "*")
filter tBad without ("*" & item 1 of gCodes & "*") or ("*" & item 2 of gCodes
& "*") or ("*" & item 3 of gCodes & "*")
Perhaps I should just loop through each line checking if it 'contains' one
of the codes instead?
Is there a better approach? <I'm sure there is>...
~Roger
More information about the use-livecode
mailing list