Return to main navigation Page
A rule is composed of a condition and an action. The condition is evaluated first. If the condition is evaluated to true, then the rule is fired. That is, an action is performed.
Rule Condition types
Managing Simple Conditions
You can select attributes to use in simple conditions and advanced functions. Use simple conditions when you are writing a rule that needs to run under certain conditions. Instead of selecting Always True, select the Simple Condition radio button in the Conditionsection of the rule.
When using simple conditions, you have to select the necessary condition attributes and specify the values of the attributes for which the rule is fired. Several comparison operators are available for this purpose.
In the Operator drop-down, select an Operator.
|Attribute Data Type||Available Operators|
|Currency, Float or Integer||
|Single Select Menu||
Attribute: Compare one attribute to another in a single condition row.
Attribute data type must be equal for the comparison.
Static: Enter a static value in the Values column.
Simple Logic with Grouping
You can choose the order in which the statements are evaluated by choosing settings in the Row Grouping section.
The default evaluation happens from left to right. You can
explicitly specify the order of operations with the help of parentheses.
For example, the condition
1 AND 2 OR 3 is evaluated by default as
(1 AND 2) OR 3. You can change the order of operations by typing
1 AND (2 OR 3)in the row grouping section.
You can view the order of operations in either the Row Grouping section (by entry row) or in the Condition Summary section.
|Row Grouping||Results||How to Achieve it|
|1 AND 2 AND 3||Rule fires when: myColor = "Red" AND myShape = "Circle" AND mySize = "Small"||Click AND ALL to achieve this result. This is default logic.|
|1 OR 2 OR 3||Rule fires when myColor = "Red" OR myShape = "Circle" or mySize = "Small"||Click OR ALL to achieve this logic.|
|(1 AND 2) OR 3||Rule fires when: myColor = "Red" AND myShape = "Circle" OR mySize = "Small"||Default parentheses from left to right. Assumes that first 1 AND 2 is evaluated and the result is OR'd with 3.|
|1 AND (2 OR 3)||Rule fires when: "myColor = "Red" AND myShape = "Circle" OR mySize = "Small"||The explicit parentheses in this statement changes the order the attributes are evaluated. At first, 2 or 3 is evaluated. The result of this is then AND-ed with 1.|
Managing Advanced Conditions
The advanced function is meant for complex condition logic. You build the logic using BML in the function editor. You can access this by clicking the View/Edit the BML Function button.
For more information, see BML Overview.
Sample of Advanced Conditions: