ListLen

Determines the number of elements in a list.

ListLen( list [, delimiters [, includeEmptyFields ] ] )

Returns: Number

Argument Description Default
list
string, required

a string list

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(listLen("susi,sam,LAS,test"));//4
	writeDump(listLen("susi,,LAS,,"));//with empty values
	writeDump(listLen("susi,,LAS,,."));//3

See also