Increases the variable of the specified units and also returns its new content.
Syntax |
real inc (real var [, real value=1]) |
---|---|
var |
Value to be incremented |
value |
Increment value (optional, default 1) |
result |
Returns the new content of var (incremented value: var+value) |
Validity |
Rule, Task |
Note |
The result can also be omitted |
Example of use:
|