AppleScript provides you with access to a collection of containment operators that you can use to search the contents of strings, lists, and records. These containment operators are listed in Table 5.6.
|contains||strings, lists, records||Searches the first operand to see if it contains the second operand.|
|is in||strings, lists, records||Searches for the second operand in the first operand.|
|does not contain||strings, lists, records||Searches the first operand to verify that it does not contain the second operand.|
|is not it||strings, lists, records||Searches for the second operand in the first operand to ensure that it is not present.|
|begins with||strings, lists ...|