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.