Previous Topic

Next Topic

Book Contents

Book Index

General Information

As long as the WHILE expression is true, commands between the WHILE expression and its matching ENDWHILE statement are repeatedly processed by Control-O.

WHILE statements can be nested providing that each WHILE statement has a corresponding ENDWHILE statement.

WHILE and IF statements can be nested within each other provided that all nesting rules are maintained. A combination of up to 100 nested WHILE and IF statements are permitted.

Control-O detects "infinite loops" that are caused by problematic DO WHILE statements (for example, DO WHILE 1 EQ 1), and stops rule execution.

When DO EXIT for a DO WHILE block is specified, processing of the DO WHILE is ended and rule processing continues after the ENDWHILE statement.

The SHOWNEST Command

To see the nesting levels of DO statements, relative to the nesting level of DO IF and DO WHILE statements, type SHOWNEST (or SH) in the COMMAND field. The nesting levels are displayed to the left of each DO parameter.

Issue the SHOWNEST command again to suppress display of the nesting levels.

Parent Topic

DO WHILE / DO ENDWHILE: Automated Console Action Parameter