5.3.2 Increment and decrement operators
The increment and decrement operators are used to represent succinctly incremental and decremental processing on the same variable. The following table lists and describes the increment and decrement operators supported by JP1/Advanced Shell.
Increment or decrement operator |
Description |
---|---|
num++ |
References num, and then adds 1 to num. |
num-- |
References num, and then subtracts 1 from num. |
++num |
Adds 1 to num, and then references the value of num. |
--num |
Subtracts 1 from num, and then references the value of num. |