There's a useful trick to the system find expression, where you do something like:
System: find(text,"apple") ≠ -1
Find returns the character index at which the first instance was found, but it returns -1 if nothing is found. So saying "if apple is not not found" is the same as "if apple is found". Then you do your action, like set text to "I love apples".