The SIZE function returns the number of object instances in a given collection property and, optionally, can count only those where some condition is true, returning this count value or a Boolean indication of whether any objects within the collection were counted. The function takes two parameters. The first parameter is required and is the object collection property to be counted. The second parameter is an optional Boolean parameter that is evaluated once for each object in the collection. It is used to include only certain members of the collection in those counted. Specifically, each object for which the second parameter evaluates to true will be counted, and those for which it evaluates to false will not be.
@SIZE (Object Collection [, Include Criteria]) | |
---|---|
Object Collection | Required property parameter; contains the object collection
to be counted by the function. |
Include Criteria | Optional Boolean parameter; this term is evaluated once for
and in the context of each object instance in Object Collection.
The function will count each object instance for which Include
Criteria returns true and exclude from the count each object
for which false is returned. |