6.1.3.4.9 DEC
Function
Decrement
LD Graphics
Parameter description
| Interface variable | Declaration | Data type | Description |
|---|---|---|---|
| INOUT | Var_InOut | ANY_INT | Value to decrement |
Example
The variable a is used to decrement itself through the DEC instruction, as shown in the figure below: a variable of type INT is defined, and the DEC instruction is executed through compilation, downloading, and the variable a is decremented by one
