Back to

The Notenik Knowledge Base

14.4 Merge Commands ↑

14.4.2 set command

This command can define a global variable and set its value. This command would normally have three operands: the name of the global variable, an operator, and a value.

One intended use for the set command is to support a line counter. By initializing the value to 0, and then adding to it whenever an output line is generated, the IF command can be used to check for page overflow (in a table column, for example), and then start a new page or column, resetting the counter to 0 again.

Another common use for the set command is to preserve record variables in global variables so that they will be available within an ifendgroup block.

Next: output command