20 Custom Macro
Difference between a vacant variable and a 0 - value one in a conditional expression will be
if #1=<vacant> | if #1=0 | |
#1 EQ #0 | #1 EQ #0 | |
* |
| * |
fulfilled | not fulfilled | |
#1 NE | 0 | #1 NE 0 |
* |
| * |
fulfilled | not fulfilled | |
#1 GE #0 | #1 GE #0 | |
* |
| * |
fulfilled | not fulfilled | |
#1 GT 0 | #1 GT 0 | |
* |
| * |
fulfilled | not fulfilled |
20.12 Types of Variables
With reference to the ways of their uses and their properties, the variables are classified into local, common and system variables. The number of the variables tells the particular category to which it pertains.
20.12.1 Local Variables (#1 through #33)
The local variable is a variable used by the macro program locally. If macro A calls B, and reference is made to local variable #i in each of macros A and B, the value of local variable #i at the level macro A will not be lost and will not be
The local variable whose address has not been involved in the argument assignment, is a vacant one that can be used optionally.
20.12.2 Common Variables (#100 through #199, #500 through #599)
Unlike the local variables, the common variables are identical throughout the entire program (not only at the given levels of program calls) - regardless of whether they are in the main program, a subprogram or in a macro, or at whatever level of the macro. If accordingly, #i has been used in a macro, e.g. a value has been assigned to it, #i will have the same value in another macro, too, until it is
The common variables from #100 to #199 will be deleted upon a
The values of common variables #500 through #599 will be preserved even after a
174