| ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Write rule conditions > Compare objects and values |
Compare objects and values |
PREVIOUS NEXT |
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...
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |