Suppose I have a text variable $$string.
How can I write a boolean to check whether $$string contains the text $$substring?
e.g. if $$string is “foobar” and $$substring is “oo”, then the result should be True, and if the $$string is “foo” and $$substring is “bar” the result should be False.
For a problem like this I’m partial to the PatternCount function:
You should then get back false = 0 or true >= 1. You can force true to 1 as follows:
Function Definition here: http://fmhelp.filemaker.com/fmphelp_10/en/html/func_ref3.33.73.html