──┬─ <Boolean assignment statement> ─┬─────────────────────────────────┤ ├─ <integer assignment statement> ─┤ ├─ <real assignment statement> ────┤ ├─ <string assignment statement> ──┤ ├─ <file assignment statement> ────┤ └─ <task assignment statement> ────┘
<Boolean assignment statement>
── <Boolean identifier> ── := ── <Boolean expression> ─────────────────┤
<integer assignment statement>
── <integer identifier> ── := ── <integer expression> ─────────────────┤
── <real identifier> ── := ── <real expression> ───────────────────────┤
── <string identifier> ── := ── <string expression> ───────────────────┤
┌◄────────────── , ─────────────┐ ── <file identifier> ── ( ─┴─ <file attribute assignment> ─┴─ ) ───────┤
┌◄──────────────── , ───────────────┐ ── <task identifier> ── ( ─┴─┬─ <task attribute assignment> ─┬─┴─ ) ───┤ └─ <file equation> ─────────────┘
Explanation
The assignment statement assigns values to declared variables.
For more information about the file assignment statement, refer to Using File Attributes. For more information about the task assignment statement, refer to Using Task Variables.
Example
The first section of the following example declares variables of type Boolean, integer, real, string, file, and task. The statements in the next section of the example assign values to the declared variables.
BOOLEAN B; INTEGER I; REAL R; STRING S; FILE F; TASK T; . . . B:=FILE A/B ON PACK IS RESIDENT; I:=INTEGER(R); R:=17.5; S:="ABC"; F(AREASIZE=1008,FLEXIBLE); % File Attribute Assignment T(PRIORITY=70); % Task Attribute Assignment . . .