Determines the number of elements in a list.
listLen(list [, delimiters, [includeEmptyValues]])
→ returns numeric
,
NO
Get the number of elements in this list
listLen("foo,bar,bar2,foo2")
Expected Result: 4
Get the number of elements in this list using a custom delimiter
listLen("foo,bar|bar2|foo2", "|")
Expected Result: 3
Get the number of elements in this list, including empty values
listLen("foo,bar,,foo2", ",", "YES")
Expected Result: 4
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.