Using the "or" operator with filter

Mark Wieder mwieder at ahsoftware.net
Sat Jul 20 13:43:05 EDT 2013


Peter-

Saturday, July 20, 2013, 9:22:00 AM, you wrote:

> How about something like this:

> put tList into list1
> put tList into list2
> put tList into list3
> filter list1 with "*" & item 1 of gCodes & "*"
> filter list2 with "*" & item 2 of gCodes & "*"
> filter list3 with "*" & item 3 of gCodes & "*"
> put list1 & cr & list2 & cr & list3 into outputList

You still need to remove the duplicates after filtering:

repeat for each line tLine in outputList
  put true into tArray[tLine]
end repeat
repeat for each key tKey in tArray
  put tKey & cr after tFilteredList
end repeat

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list