ListFindNoCase

Determines the index of the first list element in which a specified value occurs

ListFindNoCase( list, value [, delimiters [, includeEmptyFields ] ] )

Returns: Number

Argument Description Default
list
string, required

a string list

value
string, required

element for which to search

delimiters
string, optional

Characters that separate list elements. The default value is comma.

Alias: delimiter

,

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

writeOutput(listFindNoCase("I,love,lucee,testFile", "LUCEE"));//Expected output 3
//Member Function with @ delimeter
strList="I@am@lucee@dev";
writeDump(strList.listFindNoCase("Dev","@"));//Expected output 4

See also