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
Required

substring
Required

delimiters
Default: ,

Values:
  • ,
  • |
  • ;
  • chr(9)
  • chr(10)
  • chr(13)

Examples sample code invoking the listContains function


Simple Example

Return the first instance position of 'foo'

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

Expected Result: 3


Fork me on GitHub