The ADD, DIV, INZ, MULT and SUB commands are collectively known as 'counter' commands, since they can be used to mimic a named numeric counter within a script. This processing can be used to provide complex iteration within a script.
The counter commands all take the following format:
ADD|DIV|INZ|MULT|SUB counter-name counter-value
The INZ command is used to initialize (and optionally create) the counter. The INZ command must be used before any of the other counter commands. If the counter already exists (because it was created in a previous INZ command) it is simply initialized. If a counter-value is not specified for the INZ command, the counter is initialized to zero.
The ADD, DIV, MULT and SUB commands are used to modify the value of a counter (which has already been created and initialized with the INZ command). The counter-value must be specified and must be an integer between -32767 and 32767.
Counters can be checked using the IF and IFNOT commands.
Counter names are not case-sensitive
A maximum of 50 counters can be used in any script. Counter values are not saved between scripts
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |