Arbortext Command Language > Using the Arbortext Command Language > Decrement
  
Decrement
 
––
$i = –– $n (prefix form) first decreases the value of $n by 1, then sets $i to this new value.
Alternately, $i = $n –– first sets $i to the value of $n, then decreases the value of $n by 1. ($i must be either a scalar variable or an array reference, as must $n.)
The following operators are numeric and require numeric operands:
+, -, *, /, &, ^, |, <<, >>, %, ~, ++, and ––
Related Topics
Functions as expressions and commands
Using expressions
Logical expressions
Operands