HPlogo MPE/iX Commands Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3  Command Definitions C-E

ENDWHILE

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

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

Feedback to webmaster