contains
stringChecks if a string contains a substring
Syntax
contains(string, substring) Parameters
string (string) The string to search in
substring (string) The substring to search for
Returns
boolean True if substring is found, false otherwise
Examples
Input:
contains("hello world", "world") Output:
true Input:
contains("hello world", "test") Output:
false Input:
"example@test.com" | contains("@") Output:
true The contains() function checks whether a string contains a specific substring. Returns true if the substring is found, false otherwise.
Usage
Use contains() to filter data, validate input, or check for patterns in strings. Commonly used with select() to filter records based on string content.