Reference > Rule Languages > Business Action Language > BAL Constructs > set <variable> to <value>

Summary

Changes the value of a ruleset parameter or ruleset variable in the actions 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;

Related Concepts

Rule Actions

Related Tasks

Creating Business Rules

Related Reference

else
then

Related Samples and Tutorials

Tutorial: Creating Business Rules