Average
- Last Updated: March 24, 2022
- 1 minute read
- Corticon
- Version 6.3
- Documentation
SYNTAX
<Collection.attribute> ->avg
Collection>. <Collection> must be expressed as a unique alias. <attribute> must be a numeric data type.The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
This sample Rulesheet uses ->avg to average theinteger1 values of all elements in collection2, then assigns the resulting value to decimal1 in Entity1. Note the use of the
alias collection2 to represent the collection of Entity2 elements associated with Entity1.
A sample Ruletest provides integer1 values for three elements in collection2. The following illustration shows Input and Output
panels: