string.ListLen()

Determines the number of elements in a list.

string.ListLen( delimiters=string, includeEmptyFields=boolean )

Returns: Number

Argument Description
delimiters
string, optional

Characters that separate list elements. The default value is comma.

Alias: delimiter

includeEmptyFields
boolean, optional

if set to true, empty values are included as well

Examples

writedump("1,2,3".listlen());
	writeoutput("<Br>");
	writedump("i@love@@lucee".listlen("@",true));

See also