| ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Write rule conditions > Negate condition statements |
Negate condition statements |
PREVIOUS NEXT |
In certain cases, it may be easier to express a rule in terms of something not being true. You can negate an existing condition statement by adding the it is not true that construct at the beginning of the statement.
For example, the following condition checks that the customer is a member of the Gold category:
If the category of the customer is Gold Then...
However, if you wanted to check that the customer is not a member of the Gold category, you can use the following statement:
If It is not true that the category of the customer is Gold Then...
The following example shows how to negate several conditions and test that a customer is not a Gold senior member:
If
it is not true that
any of the following conditions is true
the category of the Customer is Gold
the age of the customer is least 65
Then...
it is not true that <a Boolean>
none of the following conditions are true
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |