Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ next — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

8.0;next, revision 8.0, 84/03/21
NEXT -- Return to the top of a WHILE loop.
usage:  NEXT


FORMAT

  NEXT


  The  NEXT  command is used exclusively to return to the top of a Shell program
  loop invoked with the WHILE command.

  The NEXT command requires no arguments or options.


EXAMPLES

  Consider the following section from a Shell script:

  1. WHILE ((true))
     DO    READ -TYPE integer n
           IF ((^n < 10)) THEN NEXT ENDIF
     ENDDO

  AS long as the READ command reads integers into variable  "n"  that  are  less
  than  10, the NEXT command executes and causes the script to return to the top
  of the WHILE loop.  When the value of n is greater than or equal  to  10,  the
  script leaves the WHILE loop and continues execution.

  For  more  information  on  variables, refer to Chapter 3 of the DOMAIN System
  Command Reference Manual.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026