ILOG Rules for .NET User Guides > ILOG Rule Solutions for Office > Writing and editing rules > Define variables and constants > Define a constant

The simplest use of Definitions is defining a constant value that you can use throughout your rule.

Note
If the name of a variable contains one or more spaces, you must enclose the variable name in single quotes.

For example, by declaring a variable that you call `upgrade value' in the following rule, you make the rule easier to understand.

 Definitions
     set 'upgrade value' to 250;
 If
     the value of the customer's shopping cart is more than 'upgrade value'
 Then
     upgrade the customer's status;

See Also

definitions

set <variable> to <definition>