Skip to main content

ENDS_WITH

Check a string suffix or the last 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​

ENDS_WITH:
arg:
TEXT: "staging-api"
search:
TEXT: "-api"

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.