The Condition for an Advanced Tier Rule is
represented as a logical expression. The Advanced Tier Rule
is invoked only if this Condition is satisfied. The use of
Conditions is optional. If the Condition is not defined, the
Advanced Tier Rule will always apply.
To define the Condition for an Advanced Tier
Rule:
-
Find the desired Advanced
Tier Rule on the Advanced Rules tab.
-
Click the Edit icon
within the Condition column. The "Conditions" pop-up window is displayed.
-
Click the Add button
(plus-sign icon) and select Add Rule from
the drop-down menu.
-
From the first drop-down
menu, select the desired field.
-
Select an operator.
-
Enter or select a value.
-
Repeat the above steps
as needed to define more Rules.
-
Once you define more
than one Rule, select the logical operator. From the "Include
customers that meet" drop-down menu above the list
of Rules, select either:
-
All of the following: A Member must meet all of the Rules to be selected (i.e., an AND operator)
-
Some of the following: A Member must meet at least one of the Rules to be selected (i.e., an OR operator)
-
Optionally, to clear
all Rules from this Condition, click remove
condition.
-
Optionally, to see
the underlying Groovy code for this condition, click show expression.
-
If you need to define
additional Conditions for this Advanced Tier Rule, click add condition. Repeat the above
steps to define the Rule, or Rules, for the Condition.
-
Click save.
Note: Instead of defining a Rule through the
user interface, you can provide code to perform more complex
query logic. Enter your custom code in the Advanced Expression
field.
Create a rule group
When defining the Rules for the Condition,
you can optionally organize the Rules into a Group to create
more sophisticated logical statements. Rule Groups are indented to make them easier to visually identify.
-
Within the Conditions
pop-up window, click the Add button (plus-sign icon) and
select Add Rule Group from the drop-down menu.
-
Follow the steps described
above to define the Rule, or Rules, within the Group,
as well as the Group's logical operator.
-
Optionally, to delete
a Group (and all Rules within it), click the Delete icon
within the Group.
-
Click save.