set (variable) to (value)

This construct changes the value of a ruleset parameter or variable.

Purpose

You use this construct to modify the value of a ruleset parameter or variable in the action part of a rule.

Syntax

set <variable> to <value>;

Description

The variable can be set to a literal value, an expression, or a list.

Example

The following action changes the value of a ruleset parameter to the age of a customer.

then
   set param1 to the age of the customer;