Home| Printable Version
A condition can have a loop property added to it. This is used to indicate the fact that the condition XPath will return a set of values for which this rule should be executed. If this is set, then all the actions in the rule will be executed once for each entry in the node set returned by the condition XPath. While executing, the context point for each XPath will be the current entry in the node set. This feature therefore allows you to easily handle repeating sets of data. To set a rule to loop over the selection returned by a particular condition, simply drag the loop entry from the toolbar to the appropriate condition. This will update the condition display as shown below. condition with 'loop on this selection' flag set To remove this setting, simply untick the 'Loop on this Selection' checkbox. Only one condition within a rule can have the loop property set.
Complex Conditions Actions