Go to the first, previous, next, last section, table of contents.

Assignment Statements

<v> ":=" <e>

Sets <v> to the value of <e>. <v> must be a writable designator (generally, a variable or non-READONLY procedure parameter).

INC "(" x { "," n} ")"
DEC "(" x { "," n} ")"

These are shortcuts for x := x + n and x := x - n, respectively. If omitted, n defaults to 1. x must be an ordinal value (INTEGER, CHAR, or enumerated value). n must be an integer expression. Some examples are in order;

intvar := 53;   
DEC(intvar);     (* intvar = 52 *)

charvar := 'a'; 
INC(charvar, 3); (* charvar = 'd' *)


Go to the first, previous, next, last section, table of contents.