A SERVICE OF

logo

Chapter 3 221
Command Deļ¬nitions C-E
ENDWHILE
ENDWHILE
Terminates a WHILE block. (Native Mode)
Syntax
ENDWHILE
Parameters
None
Operation Notes
This command terminates a conditional block that begins with a WHILE command. The
WHILE and ENDWHILE commands constitute a WHILE block. The WHILE command
evaluates an expression, and so long as that expression evaluates as true, the command(s)
between WHILE and ENDWHILE are executed. If the expression evaluates as false, execution
of the WHILE block ceases and execution passes to the command following ENDWHILE.
Execution terminates if any command not protected by a preceding CONTINUE causes an
error.
Use
This command may be issued from a session, job, program, or in BREAK. Pressing Break
terminates the WHILE command loop.
Example
The following is an example of a simple WHILE block:
WHILE logical_expression
.
.
.
ENDWHILE
Related Information
Commands WHILE
Manuals None