<< back to sysax.com Product page

2.3. Incrementing and decrementing numeric variables

The increment command and decrement commands can be used to increment or decrement a numeric variable by 1.

The syntax is

Exhibit 2.5. table title

increment <variable>;

decrement <variable>;

Some examples are

Exhibit 2.6. table title

setvar ~my_num, 4;

increment ~my_num; #value of ~my_num is now 5

decrement ~my_num; #value of ~my_num is now 4