For the complete documentation index, see llms.txt. This page is also available as Markdown.

ListLen

Calculates the length of a list separated by the specified delimiter

Method Signature

ListLen(list=[string], delimiter=[string], includeEmptyFields=[boolean], multiCharacterDelimiter=[boolean])

Arguments

Argument
Type
Required
Description
Default

list

string

true

string list to calculate the length

delimiter

string

false

string the list delimiter

,

includeEmptyFields

boolean

false

boolean whether to include empty fields in the returned result

false

multiCharacterDelimiter

boolean

false

boolean whether the delimiter is multi-character

false

Examples

Simple listLen Example

Get the number of elements in this list

Run Example

listLen( "foo,bar,bar2,foo2" );

Result: 4

listLen Example with Delimiter

Get the number of elements in this list using a custom delimiter

Run Example

Result: 3

listLen Example with IncludeEmptyValues

Get the number of elements in this list, including empty values

Run Example

Result: 4

Additional Examples

Run Example

Last updated

Was this helpful?