Previous Topic

Next Topic

Book Contents

Book Index

User-Defined Variables

User-defined variables can be defined to provide additional flexibility for Control-O rules. You can define your own symbols, assign values to them, and they will automatically be resolved in DO statements, ON and IN statements. DO statements are resolved during rule execution. AutoEdit symbols in ON statements and IN condition names are resolved during rule ordering.

Note: User-defined AutoEdit variables used in ON statements and IN statements must be defined as Global.

When Control-O identifies a string that starts with %%, the string is assumed to be an AutoEdit variable or instruction. If the string is a reserved AutoEdit variable or a Control-O System variable, it is interpreted as such. Otherwise the string is assumed to be a user-defined variable.

DO actions within a rule are performed sequentially. If a user-defined variable in a DO statement is not completely resolved, the default action is to cancel the DO statement and all subsequent DO statements of the rule (for the current activation). This default can be overridden by using the %%$RESOLVE NO control statement in a prior DO SET statement. For a description of the %%$RESOLVE statement format, see %%$RESOLVE. In this case, Control-O resolves the symbol as far as possible and then performs the DO statements in which it is found.

Parent Topic

System Variables