Decrement the value of an integer.
int64 incr <varref:Var>
Name | Type | Comment |
---|---|---|
Var | varref | A reference to the integer variable to be decremented. |
The value of Var after it was decremented by 1.
// create a new integer 'i', and set it to 10 int i set i 10 // decrement the value of 'i' four times, and echo to log echo <zs:decr i> echo <zs:decr i> echo <zs:decr i> echo <zs:decr i>
… the output of which is written to the event log by echo as:
9 8 7 6
The following variable types of the argument Var are supported by decr
: