Skip to main content

Contains

The Contains function returns \'true\' if the string contains the specified text, otherwise \' false\' is returned.

Prototype

  Contains(String; Text)

Arguments


String String By value

Argument that contains the input string. The Argument can be a literal encapsulated in single quotes or the
result of an expression or a variable (Studio only).

Text String By value

Argument that contains the sub-string to look for. Argument can be a literal encapsulated in single quotes
or the result of an expression or a variable (Studio only).

Returns

Boolean 

True if String contains the Text. Notice that this function is NOT case sensitive.

Exception

Undefined

Undefined is returned if one of the two arguments is not a valid string.

Example

Contains('this is my string'; 'is')

This will return true.