skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Size of collection
 

Try Corticon Now

Size of collection

SYNTAX

<Collection> ->size

DESCRIPTION

Returns the Integer number of elements in <Collection><Collection> must be expressed as a unique alias.

USAGE RESTRICTIONS

The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.

RULESHEET EXAMPLE

This sample Rulesheet uses ->size to count the number of elements in collection1, and assign a value to boolean2. Note the use of unique alias collection1 to represent the collection of Entity2 associated with Entity1.

SAMPLE TEST

A sample Ruletest provides three examples of collection1. Input and Output panels are shown below.