Whatever message this page gives is out now! Go check it out!
ListValueCount(list, value [, delimiters ])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 sensitive. |
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. |
<cfscript>
myString="Foo|bar|foo,bar|lorem|ipsum|foo|foo"
writeOutput("The count of foo is: " & ListValueCount(myString,"foo","|"))
</cfscript>