contains(haystack: text, needle: text) 🡒 boolean, const pure function

Returns true if the first argument contains an occurrence of the second argument.

haystack = "Hello World!"
show summary "" a1c2 with
  contains(haystack, "Hello") as "Contains Hello?" // 'true'
  contains(haystack, "Town") as "Contains Town?"   // 'false'

The second argument is not allowed to be an empty text value.

User Contributed Notes
0 notes + add a note