Inside Coldfusion MX

"-->

ListValueCount (list, value [, delimiters])

Description

Counts the number of times a value occurs in a list. The search is

case-sensitive.

Example

<cfset exampleList = "Apples, Apples, Oranges, Grapes, Pears, Mangoes, Apples, apples,"> <cfoutput> Apples occurs #ListValueCount(exampleList, Apples)# times in the list. </cfoutput>

Категории