SYNTAX

<Collection> ->notEmpty

Returns a value of true if <Collection> contains at least one element->notEmpty does not check for attribute values, but instead checks for the existence of elements within a collection. As such, it requires the use of a unique alias to represent the collection being tested.

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

This sample Rulesheet uses the ->notEmpty function to determine if collection1 has elements. Note the use of unique alias collection1 to represent the collection of Entity2 associated with Entity1.

A sample Ruletest provides two collections. The following illustration shows Input and Output panels