githubEdit

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

false

Examples

Simple listLen Example

Get the number of elements in this list

Run Examplearrow-up-right

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

Result: 4

listLen Example with Delimiter

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

Run Examplearrow-up-right

Result: 3

listLen Example with IncludeEmptyValues

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

Run Examplearrow-up-right

Result: 4

Additional Examples

Run Examplearrow-up-right

Last updated

Was this helpful?