ÃÛ¶¹ÊÓƵ

count count

Counts the elements of the list not taking into account the null values.

Category

Aggregation

Function syntax

count(<listAny>)

count(<listObject>)

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

count(<listAny>)

Returns an integer.

Example

count([10,2,10,null])

Returns 3.

count(@event{my_event.productListItems})

Returns the number of objects in the given array of objects (listObject type). Remark: a listObject cannot contain null object

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