Search                        Top                                  Index
HELP QUITUNLESS                                 Aaron Sloman, June 1982

    quitunless(<expression>)

translates to:

    unless <expression> then quitloop endunless;

This causes control to pass out of a loop enclosing this instruction (in
the same procedure only). The parentheses surrounding the expression are
essential.

To quit the Nth enclosing loop do

    quitunless(<expression>)(N)

The integer N cannot be replaced by a variable.

See HELP
 *QUITLOOP   - to jump out of one or more enclosing loops
 *QUITIF     - to jump out of a loop if a condition becomes true
 *NEXTLOOP   - to continue an enclosing loop (start next iteration)
 *NEXTIF     - to restart a loop if a condition becomes true
 *NEXTUNLESS - to restart a loop if a condition becomes false
 *RETURN     - to terminate execution of current procedure

 *LOOPS      - for types of iteration available in POP-11
 *CONTROL    - for control structures available in POP-11