ListValueCountNoCase()
Counts instances of a specified value in a list.
The search is case-insensitive.
ListValueCountNoCase( list=string, value=string, delimiter=string, includeEmptyFields=boolean );
Returns: Number
Examples
List = "lucee,ACF,luceeExt,lucee, ext,LUCEEEXT";
writeDump(ListValueCount(list, "lucee")); // It return's 2
writeDump(ListValueCount(list, "luceeExt")); // It return's 2 because it case Insensitive
List2 = "lucee@ACF@luceeExt@lucee@ext@LUCEEEXT";
writeDump(ListValueCount(list2, "lucee", "@"));
See also
- Lists
- Strings
- string.listValueCountNoCase()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)