2021.1

Table Of Contents
l The following rule:
(GetMeta(SelectedIndexInDocument[0], 11, Job.Group[?].Document
[?].Datapage[?]) Equal 0
loops through all datapages in a job, comparing their index in the document to a value.
Index/Count values
When using Index/Count values in a rule, please note that these values are zero-based: the
first element in any collection has an index of 0 and the last element's index corresponds to the
collection's length minus 1. For example, the following rule checks all Datapages to see if it is
the first in its containing Document:
(GetMeta(SelectedIndexInDocument[0], 11, Job.Group[?].Document[?].Datapage[?]) Equal
0)
Adding Conditions and Sub Conditions
The Rule Interface is used to add/remove conditions or sub conditions. The available options
are:
l
Add Condition: Create a new condition at the selected level, using a standard logical
operator (AND, OR).
l
Add Sub condition: Indent the selected condition by one level and create a new
condition at this level, linked with the selected condition by a standard logical operator
(AND, OR). The purpose of using sub conditions is to explicitly arrange the order on
which conditions are evaluated and the way they are nested together.
l
Delete Condition: Delete the selected condition.
Example
As an example, consider the following conditional expression, where A, B, C and D are
conditions of the form <EXPRESSION 1><OPERATOR><EXPRESSION 2>:
A and (B or C) and D
Such a conditional expression can be expressed by means of sub conditions in the following
way:
1. Define condition A.
2. Select condition A and choose Add Condition. Specify the logical operator AND.
Page 872