skip to main content
Corticon Studio: Rule Language Guide : Rule operator details and examples : Not empty
 

Try Corticon Now

Not empty

SYNTAX

<Collection> ->notEmpty

DESCRIPTION

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.

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 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.

SAMPLE RULETEST

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