Sum
- Last Updated: August 12, 2020
- 1 minute read
- Corticon
- Documentation
SYNTAX
<Collection.attribute> ->sum
<attribute> for all elements in <Collection>. <attribute> must
be a numeric data type. <Collection> must be
expressed as a unique alias.The Operators row of the table in Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
This Rulesheet uses the ->sum function to
add all decimal1 attributes within collection1. Note the use of unique alias collection1 to represent the collection of Entity2 associated with Entity1
![]()
A sample Ruletest provides 3 elements in collection1. Input and Output panels are shown below.
![]()