TAL Reference Manual

TAL Syntax Summary (Bracket-and-Brace Diagrams)
Appendix C—526371.001
C-22
IF Statement
IF Statement
The IF statement conditionally selects one of two statements.
Move Statement
The move statement copies contiguous bytes, words, or elements to a new location.
RETURN Statement
The RETURN statement returns control to the caller. For a function, RETURN must
return a result expression. The RETURN statement can also return a condition-code
value.
SCAN Statement
The SCAN or RSCAN statement scans sequential bytes for a test character from left to
right or from right to left, respectively.
GOTO label-name
IF condition THEN [ statement ] [ ELSE [ statement ] ]
destination { ':=' }
{ '=:' }
{ source FOR count [ count-unit ] }
{ constant }
{ " [ " constant " ] " }
{ constant-list }
[ & { source FOR count [ count-unit ] } ] ...
{ constant }
{ " [ " constant " ] " }
{ constant-list }
[ -> next-addr ]
{ RETURN [ , cc-expression ] }
{ RETURN result-expression [ , cc-expression ] }
{ SCAN } variable { WHILE } test-char [ -> next-addr ]
{ RSCAN } { UNTIL }