DECR
7.8.2
The DECR instruction decrements a variable by one. The instruction uses the following format:
|
|
|
|
|
Where:
label
Optional. A Program Execution Label.
source
Required. A Numeric Variable that is decremented.
Flags Affected: LESS, OVER, ZERO
Note the following:
The {source} variable is decremented by one (1).
If the result exceeds the {source} variable, the OVER flag is set TRUE.
If the result is zero, The ZERO flag is set.
If the result is negative, the LESS flag is set TRUE.
See Also: Example Code, INCR, Mathematical Instructions
![]() |