10.14.17 Assignment (:= or =)


variable := expression ;

variable = expression ;

Variable is the name of a variable declared in the VARIABLES section or the name of a field declared in the FIELDS section.


The assignment statement is used to store a new value in a variable or field. The INSERT or UPDATE statement must be used if the new values of the fields are to be stored into the data file.


amount := 0.0;

count = count + 1;

IF debit_flag THEN

balance := tr_amount;


balance := -tr_amount;