listSize listSize

Counts the number of elements in the list.

Category

List

Function syntax

listSize(<parameters>)

Parameters

Parameter
Type
Description
listToProcess
listString, listBoolean, listInteger, listDecimal, listDuration, listDateTime, listDateTimeOnly, listDateOnly, or listObject
List to process. For listObject, it must be a field reference. A listObject cannot contain null object.

Signatures and returned type

listSize(<listInteger>)

listSize(<listDecimal>)

listSize(<listString>)

listSize(<listBoolean>)

listSize(<listDateTimeOnly>)

listSize(<listDateTime>)

listSize(<listDateOnly>)

listSize(<listDuration>)

Return an integer.

listSize(<listObject>)

Example

listSize([10,2,3])

Returns 3.

listSize(@event{my_event.productListItems})

Returns the number of objects in the given array of objects (listObject type).

recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76