Skip to main content

SIZE

Count the items in a List or Set.

Return Type​

Number.

Inputs​

arg is a required List or Set expression.

Syntax and Example​

SIZE:
arg:
LIST:
itemType: TEXT
items: ["staging", "staging", "production"]

Behavior and Missing Values​

The example returns 3 because Lists retain duplicates. A Set of the same Text items contains 2 unique members. Use a numeric comparison to test the returned count. Test null and empty collection inputs when building fixtures.