CONTAINS
Search text for a substring or a collection for an item.
Return Type
Boolean.
Inputs
arg is a required Text, Bytes, List, or Set expression. search is a required Text or Bytes expression.
Syntax and Example
CONTAINS:
arg:
SET:
itemType: TEXT
items: ["staging", "production"]
search:
TEXT: "production"
Behavior and Missing Values
The example returns true. Text matching ignores case and normalized whitespace; Bytes matching preserves both. For strings, an empty or null value contains an empty or null search value but not a non-empty search. Check required input values explicitly.