Livecode Wiki

Compares two strings and evaluates to true if the second contains the first, false if not.

Syntax:

subString is in string

Examples:

"A" is in "ABC" -- evaluates to true
"123" is in "13" -- evaluates to false


Use the is in operator to find out whether a string contains a substring.

The substring and string are both strings, or expressions that evaluate to strings.

Please note that the expression

firstString is in secondString

is equivalent to

secondString contains firstString

The is in operator is the logical inverse of the is not in operator. When one is true, the other is false.

See Also: contains Operator, is among Operator, is not in Operator