TAL Programmer's Guide

FOR Statement
Controlling Program Flow
12–14 096254 Tandem Computers Incorporated
Standard FOR Loop Execution
Figure 12-6 shows the action of the standard FOR loop.
Figure 12-6. Standard FOR Loop Execution
Increment or decrement
index BY step
FOR index := initial-value
Calculate limit and step
FALSE
TRUE
Is
index
past
limit
?
; next-statement
409
DO statement