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
list.listFindNoCase(value [, delimiters, includeEmptyValues])
Name | Type | Required | Default | Description | Values | |
---|---|---|---|---|---|---|
list | string | Yes | ||||
value | string | Yes | ||||
delimiters | string | No | , | |||
includeEmptyValues | string | No | false | /Users/garethedwards/development/github/cfdocs/docs/functions/listfindnocase.md | false |
Find item in a list and return the index.
listFindNoCase("apple,orange,banana", "orange")
Find item in a pipe delimited list and return the index.
listFindNoCase("apple|orange|banana", "orange", "|")
listFindNoCase as a member function
fruits = "apple|orange|banana";
writeOutput(fruits.listFindNoCase("ORANGE", "|"));