decr/2—decrement an integer or enumeration slot by a specified value
The decr/2 operation decrements an integer or enumeration slot by a specified value.The syntax for the decr/2 operation is as follows:
decr($SLOT,$DECR)
decr2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$SLOT | Input | SLOTREF | Specifies an integer or enumeration slot to be decremented |
$DECR | Input | INTEGER | Specifies the number of values that the slot is to be decremented |
Use the decr2 to decrement the slot referenced in $SLOT by $DECR. For an enumeration, the slot value is decremented to the $DECR next lower value. If there are not $DECR lower values, the slot value is decremented to the lowest value.
decr2 example
decr( $E.mc_priority , 2 );
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*