DGL Statement Reference : ASSIGNMENT

ASSIGNMENT

Description
Assigns the value of an expression to a variable. An assignment statement should be interpreted as follows:
The variable on the left-hand side of the statement is assigned the value of the expression on the right-hand side.
The expression and the variable must be of the same or compatible type. If the expression is of type STATE, ACTIVITY, and so on, the variable is of the same type, or of type ELEMENT.
Syntax
variable:= expression;
Notes
The expression and the variable must be of the same or compatible type. If the expression is of type STATE, ACTIVITY, and so on, the variable is of the same type or of type ELEMENT.
Example
VARIABLE
LIST OF STATE st_list;
LIST OF ACTIVITY act_list;
LIST OF ELEMENT el_list;
BEGIN
.
.
el_list := st_list + act_list;
.
.
END:
See Also