ILOG Rules for .NET User Guides > Rule Studio > Writing Rules > Conditions

The condition part of a rule specifies under what conditions the actions in the action part of the rule will be carried out. Conditions are represented by whatever appears after if, ending at then (which signals the beginning of the action part of the rule).

For example, in the following rule, the call is redirected to a member of the Gold team only under the condition that the customer category is Gold:

 if
     the customer category is Gold
 then
     redirect the call to a member of the 'Gold team';

This is a simple condition that is either true or false; the action is carried out if this condition is true.

In This Section

Combining Condition Statements
Explains how to use condition statements together.
Testing for Existence
Describes a number of constructs that help you find a business term.
Negating Condition Statements
Describes how you write a condition on something not being true.
Comparison Operators
Describes how you can compare or establish relationships between the different terms found in rule statements.
Comparing Objects in a Condition
Describes how you can write conditions that compare objects.
Variables
Describes how you can identify and subsequently reference an occurrence of something by a convenient name.