Determines the index of the first list element in which a specified value occurs. Returns 0 if not found. Case-sensitive

listFind(list, value [, delimiters, includeEmptyValues]) → returns numeric

listFind Argument Reference

list string

value string

delimiters string
Default: ,

includeEmptyValues string
Default: false

  • true
  • false

Examples sample code invoking the listFind function

Find item in a list and return the index.

listFind("apple,orange,banana", "orange")

Expected Result: 2

Find item in a pipe delimited list and return the index.

listFind("apple|orange|banana", "orange", "|")

Expected Result: 2

Fork me on GitHub