ListFind()
Determines the index of the first list element in which a specified value occurs. Case-sensitive
ListFind( list=string, value=string, delimiters=string, includeEmptyFields=boolean );
Returns: Number
Examples
writeOutput(listFind("I,love,lucee,testFile", "lucee"));//Expected output 3
//Member Function with @ delimiter
strList="I@am@lucee@dev";
writeDump(strList.listFind("dev","@"));//Expected output 4
See also
- Lists
- Strings
- string.listFind()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)