incr/2—increment an integer or enumeration slot by a specified value
The incr/2 enumeration operation increments an integer or enumeration slot by a specified value. The general syntax for incr/2 is as follows:
incr($SLOT,$INCR)
incr/2 arguments
Argument | Mode | Type | Description |
---|---|---|---|
$SLOT | Input | SLOTREF | Specifies an integer or enumeration slot to be incremented |
$INCR | Input | INTEGER | Specifies the number by which the slot is to be incremented |
Use incr/2 to increment the slot referenced in $SLOT by $INCR. For an enumeration, the slot is incremented by $INCR higher values. If there are no $INCR higher values, then the slot is incremented to the highest value available.
incr/2 example
incr( $E.mc_priority , 2 );
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*