ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Write rule conditions > Compare objects and values

A wide variety of comparison operators are available to enable you to compare and manipulate numeric and boolean (True/False) values, dates, objects, and text strings.

For example, you can use the starts with text operator to determine whether a text string starts with a specific sequence of characters:

 If
     the customer's maintenance number starts with "TX"
 Then
     redirect the call to call center A;

In the following example, the is more than numerical operator is used to compare two numerical values:

 If
     the purchase value of the shopping cart is more than $100
 Then
     apply a 10% discount to the value of the shopping cart

In the following example, the date/time operator after <date> and before <date> is used to compare two dates:

 if
    the return date of 'rented car' is after 'pickup date' and before 'scheduled return date'
 then...

See Also

Arithmetic operators

Date operators

Logical operators

Number Operators

Object operators

Text operators