Sets an integer variable to the value of a constant, variable or simple function.


set variable = expression


variable can either be a variable declared by the user in the global part of the program using the int statement or a predefined variable (such as numcomponents or numrequests).

expression can contain either the name of an integer variable, an integer constant, or a function call.

There is a variant of the set command where no "=" or expression are stated. This variant is used only in the case of set mark or set start.


set a = 2
set numrequests = sum(a, 1)
set start
set b = a