strings.contains

Supported in:
strings.contains( str, substr )

Description

Returns true if a given string contains the specified substring. Otherwise it returns false.

Param data types

STRING, STRING

Return type

BOOL

Code samples

Example 1

This example returns true because the string has a substring "is".

strings.contains("thisisastring", "is") = true
Example 2

This example returns false because the string does not have substring "that".

strings.contains("thisisastring", "that") = false