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