Folks, What is the most efficient way to test whether a variable containing a string such as “my test phrase” contains one of several variable substrings, such as “est” OR “phr” OR... ?
So far I’ve tried (without luck) approaches that simplify into... put “my test phrase” into myTestPhrase put “*est*” & cr & “*phr*” into tSubstrings if myTestPhrase is among the lines of tSubstrings then answer “true” repeat for each line L in tSubstrings if myTestPhrase contains L then answer “true” end repeat Both seem to be failing - do I have the wrong syntax or approach to the problem? TIA Keith _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode