Skip to content

CONTAINS ​

Returns 1 if the haystack contains the needle. This function is case sensitive.

js
CONTAINS(haystack, needle)

Parameters ​

  • haystack - The string input (the haystack).
  • needle - The string to be found (the needle).

Examples ​

js
CONTAINS("Hello World","World")

Result: 1