Skip to content

List Count

Type: list-count  ·  Package: Collections Activities v1.0.3  ·  Output: int

Gets how many elements a list has.

Counts the elements of list (including null ones) and returns the number. It does not modify the list.

ParameterTypeDefaultDescription
listList—The list.

None.

Returns an int with the number of elements; 0 if the list is empty.

MessageCause and fix
'list' must be a List, got ….list is not a list (the message shows the type received, or null if the variable is empty).
List Count list = pending → output: total
If condition = total > 0
└─ then:
Log message = "There are " + total + " pending"