Adding nested conditions
This article describes how to add conditions in version 5.6, which includes multi-level nested conditions (for iSheet records only). If the Trigger tab is not as described in this section, please ask your administrator or HighQ representative about updating your instance.
As described above, select
iSheet record
, then specify if the trigger should occur when an iSheet record is
Added
or
Updated
.
Select the
iSheet
that the rule monitors, then click
Add condition
.
Check the iSheet record section for additional instructions and restrictions.
After you create your top-level/parent condition, click the
Save
button to save it.
The
New rule
window displays a summary of the saved condition.
Hover over the summary bar to display icons to
Edit
,
Add
or open
More actions
.
Add 'Or' condition
and
Add 'And' condition
add further 'nested' conditions to the selected condition.
You may add up to two levels of additional sub-conditions under a top-level condition. These allow you to specify more complex conditions for rules that require greater precision.
These conditions are nested under the parent condition with indents; they only apply to the parent condition and other conditions at the same level.
See Creating sub-conditions with indents for instructions on how to add or remove indents.
For example, in the above example, the conditions first check that the
Type
is equal to a
Sales agreement
. Then a second condition checks the
Region
is equal to
EMEA
and, as a sub-condition, that the
Value
column must also be greater than or equal to
1000
the action is triggered - note that the sub-condition (
Value
) only applies to the
Region
condition.
If an
And
condition is set, all conditions (at that level) must be met to trigger the action. If an
Or
condition is set, any one condition must be met.
Add further conditions to a trigger to build a more precise rule.
For example, in the above image, four top-level (or parent) conditions exist, triggered if:
the
Type
is a
Sales agreement
, and one of:
the
Region
is
EMEA
and, as a sub-condition, the
Value
column is
1000
or greater.
the
Region
is
LATAM
and, as a sub-condition, the
Value
column is
1250
or greater.
the
Region
is
APAC
and, as a sub-condition, the
Value
column is
1500
or greater.
In this example, the conditions ensure that a sales agreement complies with minimum values, that vary in different regions, before the rule is triggered.
Creating sub-conditions with indents
If you have created a parent condition, or have created multiple conditions, you can create a sub-condition, or use indents to change a condition from a top-level condition to a sub-condition.
Create a new indented condition
Hold the cursor over the parent condition summary, then select the plus sign to add a new condition, or click
More actions
then select
Add 'Or' condition
or
Add'And' condition
.
Indent an existing condition
Hold the cursor over the condition summary, then select the right arrow to add an indent, or click
More actions
then select
Indent
.
This changes the relationship with other conditions; e.g. a top-level condition becomes a sub-condition of the condition above it.
The 'Any' and 'Or' tags to the left of the summary describe how the sub-conditions are applied.
Select the indent arrow again to further change the sub-condition.
To remove an indent, click the
More actions
button, then select
Remove indent
. This removes one level of indent from the sub-condition.
A condition can be indented a maximum of two times.
Below is a list of operators that are available when building conditions:
is equal to
- Exact match on the text string
is not equal to
- Does not contain the exact test string
is before
- Is earlier than a selected date
is after
- Is later than a selected date
is within
- Is inside a date or number range
is greater than
- Is greater than a selected number
is less than
- Is less than a selected number
is equal to or greater than
- a selected number
is equal to or less than
- a selected number
is blank
- Contains no value at all
is not blank
- Contains anything
begins with
- The text string matches the beginning of the input value
does not begin with
- The text string does not match the beginning of the input value
contains
- The text string is contained within the input value
does not contain
- The text string is not contained within the input value
changes
- The input value changes
changes to
- The input value changes to an exact match of the text string