listContains

Determines the index of the first list element that contains a
specified substring.
Returns the index of the first list element that contains
substring. If not found, returns zero. The search for the substring is case-sensitive.

listContains(list, substring [, delimiters]) → returns numeric

listContains Argument Reference

list string
Required

substring string
Required

delimiters string
Default: ,

Examples sample code invoking the listContains function

Return the first instance position of 'foo'

listContains("sheep,goat,foo,bar,foo", "foo")

Expected Result: 3


Fork me on GitHub