listFindNoCase

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

listFindNoCase(list, value [, delimiters, includeEmptyValues]) → returns Numeric

listFindNoCase Argument Reference

list
Required

value
Required

delimiters
Default: ,

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

includeEmptyValues
Default: false

Values:
  • true
  • false

Examples sample code invoking the listFindNoCase function


Basic Example

Find item in a list and return the index.

listFindNoCase("apple,orange,banana", "orange")

Expected Result: 2


Different Delimiters

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

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

Expected Result: 2


Fork me on GitHub