is in

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

# Metadata

Platforms: desktop, server, mobile OS: mac, windows, linux, ios, android Introduced: 1.0 Security:

# Syntax

subString is in string

# Params

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

# Examples

"A" is in "ABC" -- evaluates to true

"123" is in "13" -- evaluates to false

# 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.

# Tags

# See

- **keyword:** string - **glossary:** evaluate, string, operator - **operator:** is not in, contains, is among