decr/3—retrieve the value of an integer or enumeration slot decremented by a specified value - Documentation for BMC TrueSight Infrastructure Management 11.3.04
Marcus Reynolds The decr/3 operation retrieves the value of an integer or enumeration slot decremented by a specified value. The syntax for the decr/3 operation is as follows:
$VAL=decr($SLOT,$DECR)decr/3 arguments
Argument | Mode | Type | Description |
|---|---|---|---|
| Input | SLOTREF | Specifies an integer or enumeration slot for which the decremented value is to be returned. |
| Input | INTEGER | Specifies the number by which the slot value returned in |
| Output | INTEGER|ENUM | Value of the slot decremented by |
Use decr/3 to retrieve the value of the slot referenced in $SLOT decremented by $DECR in $VAL. For an enumeration, the slot value is decremented to the $DECR next lower value. If there are no $DECR lower values, the slot value is decremented to the lowest value.
The referenced slot itself is not modified.
decr/3 example
$NEWPRIO = decr( $E.mc_priority , 2 );