Iterate
- Last Updated: August 12, 2020
- 1 minute read
- Corticon
- Documentation
SYNTAX
<Collection> ->iterate(<Expression>)
Executes <Expression> for every element in <Collection>. <Collection> must be expressed as a unique alias.
The Operators row of the table in Summary Table of Vocabulary Usage Restriction does not apply. Special exceptions: ->iterate may only be used in Action Rows (section 5 in Sections of Rulesheet that correlate with usage restrictions).
This sample Rulesheet uses ->iterate to
assign the value of test to string1 in every element in collection1 . See ->exists for more information on this operator.
![]()
A sample Ruletest provides three elements in collection1. Input and Output panels are shown below.
![]()