Returns true if the first string contains at least one occurrence of substring, otherwise false.
contains(string:string, substring:string) -> Boolean |
Name |
Type |
Description |
---|---|---|
string |
string |
The input string. |
substring |
string |
The string value to check for. |
The following expression returns true:
contains('cat','a') |
The following expression returns false:
contains('cat','b') |