Previous

Variable Assignment Statements

A variable assignment changes the value of a variable. The syntax follows.

target := expression;

Expression determines the assigned value; its type must be compatible with target. See the “Expressions” chapter for further information. Target names the variables that receive the value of expression. See the “Assignment Targets” section of this chapter for a description of variable assignment targets.

When a variable is assigned a value, the assignment takes place immediately. A variable keeps its assigned value until it is assigned a new value.

Next