Condition Evaluation Within a Given Scope

One important difference between conditions in Siebel Territory Management and ordinary Boolean conditions is that, for a given scope, you must:

  • Place all the OR conditions first or

  • Place all the AND conditions first.

You cannot put OR conditions between AND conditions. You cannot put AND conditions between OR conditions. See the following image.

These grouped conditions are evaluated as follows:

  • A condition that includes only ANDs is evaluated in the usual way. The entire condition is true only if all the subconditions are true.

  • A condition that includes only ORs is evaluated in the usual way. The entire condition is true if any one of the subconditions is true.

  • A condition where the ANDs precede the ORs is evaluated as if it were grouped in the following way: 1 AND 2 AND 3 AND 4 OR 5 OR 6 is evaluated as 1 AND 2 AND 3 AND (4 OR 5 OR 6).

  • A condition where the ORs precede the ANDs is evaluated as if it were grouped in the following way: 1 OR 2 OR 3 OR 4 AND 5 AND 6 is evaluated as (1 OR 2 OR 3 OR 4) AND 5 AND 6.

Grouping Like Conditions Together Within a Scope (ANDs with ANDs; ORs with ORs). In this image, there are two groups of AND/OR conditions. The first group has the following conditions in the following order: AND, AND, OR OR, OR. There is a checkmark next to this group indicating that this grouping is valid. The second group has the following: AND, OR, OR, AND, AND. An X mark is next to this group indicating that you can not put OR conditions between AND conditions.