Whatever message this page gives is out now! Go check it out!

ListValueCountNoCase

Last update:
May 18, 2026

Description

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

Returns

The number of instances of value in the list.

Category

Function syntax

ListValueCountNoCase(list, value [, delimiters ])

See also

ListValueCountLists in Data types- Developing guide in the Developing ColdFusion Applications

Parameters

Parameter
Description
list
A list or a variable that contains one.
value
String or number, or a variable that contains one. Item for which to search. The search is case-insensitive.
delimiters
A string or a variable that contains one. Characters that separate list elements. The default value is comma. If this parameter contains more than one character, ColdFusion processes each occurrence of each character as a delimiter.

Example

<cfscript>
    myString="Foo|bar|foo,bar|lorem|ipsum|foo|foo"
    writeOutput("The count of foo is: " & ListValueCountNoCase(myString,"foo","|"))
</cfscript>
Output
The count of foo is: 3

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page