listValueCountNoCase

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

listValueCountNoCase Argument Reference

list string
Required

value string
Required

delimiters string
Default: ,

Examples 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


Fork me on GitHub