The default precedence of conjunctions in BAL is that or
takes precedence over and
. You can control the precedence of operators by grouping parts of the condition with parentheses. For example:
If
the customer is older than 60
or (the customer is younger than 21
and the category of the customer is Silver)
To change the precedence of conjunctions in the Rule Editor:
-
Right-click at the position where you want to insert the parentheses.
- A drop-down list that includes parentheses is displayed. The options for adding parentheses appear as
(...
, ...(
, )...
, ...)
, or (...)
depending on the part of the condition you clicked on. -
Click the parenthesis.
- A parenthesis is placed before or after the part of the condition you clicked, depending on the context and which option you selected.
|