Previous Topic: Specify Actions to Be Taken When a Rule Is EnabledNext Topic: Specify Actions to Be Taken When a Rule Is Disabled


Set Initial Variable Values for a Rule

Use the Initialize Rule Variables panel to set variables to specific values before the rule executes for the first time. The following sample panel applies to all types of rules:

EasyRule ---------------------------------------------------------------------- COMMAND ===> I N I T I A L I Z E R U L E V A R I A B L E S --LOCAL/GLOBAL VARIABLE NAME-- <---- INITIAL VALUE --------> ______________________________ ===> ______________________________ ______________________________ ===> ______________________________ ______________________________ ===> ______________________________ ______________________________ ===> ______________________________ ______________________________ ===> ______________________________ ______________________________ ===> ______________________________ -GLOBAL VARIABLE NAME-- <---- INITIAL VALUE --------> GLOBAL. _______________________ ===> ______________________________ GLOBAL. _______________________ ===> ______________________________ GLOBAL. _______________________ ===> ______________________________ GLOBAL. _______________________ ===> ______________________________ GLOBAL. _______________________ ===> ______________________________ GLOBAL. _______________________ ===> ______________________________

To set initialize variable settings for a rule

  1. Type the name of the variable in the left-hand column.
  2. Type the desired initial value in the right-hand column.

The entries you make on this panel become OPS/REXX statements in the )INIT section of the code EasyRule generates for your rule. These OPS/REXX statements execute only when the rule is first enabled.