Counts instances of a specified value in a list.
The search is case-insensitive. For case-sensitive search use listValueCount.

listValueCountNoCase(list, value [, delimiters]) → returns numeric

Argument Reference

list string

value string

delimiters string
Default: ,

Sample code invoking the listValueCountNoCase function

Counts instances of 'foo' in the list, ignoring case

listValueCountNoCase("foo,bar,lorem,Foo,ipsum", "foo")

Expected Result: 2

Counts instances of 'foo' in the list with a custom delimiter, ignoring case

listValueCountNoCase("bar|Foo|lorem,ipsum|me|foo,something|foo|FOO", "foo", "|")

Expected Result: 3

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub