Rule Builder > Business Rules > Working With the Rule Editor > Changing Default Operator Precedence

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:

  1. Right-click at the position where you want to insert the parentheses.
  2. 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.
  3. Click the parenthesis.
  4. A parenthesis is placed before or after the part of the condition you clicked, depending on the context and which option you selected.

Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT