TAL Programmer's Guide
WHILE Statement
Controlling Program Flow
096254 Tandem Computers Incorporated 12–9
This WHILE loop increments INDEX until a nonalphabetic character occurs:
LITERAL len = 255;
STRING .array[0:len - 1];
INT index := -1;
WHILE (index < len - 1) AND
($ALPHA(array[index := index + 1]))
DO ... ;
Figure 12-4 shows the action of the WHILE statement.
Figure 12-4. WHILE Statement Execution
WHILE condition
; next-statement
FALSE
TRUE
DO statement
407