STARTS_WITH
Check a string prefix or the first item of an ordered list.
Return Type
Boolean.
Inputs
arg accepts a Text, Bytes, List, or Set expression. search is a required Text or Bytes expression. Both arguments are required.
Syntax and Example
STARTS_WITH:
arg:
TEXT: "staging-api"
search:
TEXT: "staging-"
Behavior and Missing Values
Text matching uses normalization; Bytes matching is exact. Use strings or ordered Lists for position-sensitive checks. Sets are unordered, so avoid depending on a first or last Set item. Include missing inputs in fixtures to confirm the intended outcome.