is in

Typeoperator
DictionaryLCS
LibraryLiveCode Script
Syntax
<subString> is in <string>
Summary

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

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Parameters
NameTypeDescription
substring

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

string
Example
"A" is in "ABC" -- evaluates to true
"123" is in "13" -- evaluates to false
RelatedKeyword: string
Glossary: evaluate, string, operator
Operator: is not in, contains, is among
Description

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

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.

Tagstext processing