ListValueCountNoCase

Counts instances of a specified value in a list. The search is case-insensitive.

ListValueCountNoCase( list, value [, delimiter [, includeEmptyFields ] ] )

Returns: Number

Argument Description Default
list
string, required

a string list

value
string, required

Item for which to search

delimiter
string, optional

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

Alias: delimiters

,

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

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 Insenstive
List2 = "lucee@ACF@luceeExt@lucee@ext@LUCEEEXT";
writeDump(ListValueCount(list2, "lucee", "@"));

See also