Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

incr/3—increment an integer or enumeration slot by a specified value  within a specified limit


The incr/3 operation increments an integer or enumeration slot by a specified value within a specified limit. The general syntax for the incr/3 operation is as follows:

incr($SLOT,$INCR,$LIMIT)

incr/3 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

$LIMIT

Input

INTEGER|ENUM

Specifies the limit to which the slot value is to be incremented

Use incr/3 to increment the slot referenced in $SLOT by $INCR, limited to the value $LIMIT. For an enumeration, the slot value is incremented by $INCR higher values, limited to $LIMIT.

incr/3 example

incr( $E.mc_priority , 2 , PRIORITY_2 );

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*