Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

10.0;while, revision 1.0, 88/01/21
while - execute a while loop.
usage: while condition do command ... enddo



DESCRIPTION
     while executes a command (or commands) as long as the results of a
     Boolean test are true.  You can extend the while command  over several
     lines if you use it interactively or in a shell script. When you use
     while interactively, and extend the command over more than one line, the
     shell prompts you for each new line of the command with the $_  prompt.

ARGUMENTS
     condition (required)
               Specify a command or program to execute and test for truth, or
               specify a variable expression or Boolean variable to test for
               truth.  "Truth" usually means that the command executes
               successfully (without any errors), or that a shell variable
               expression or Boolean is "true". (Specifically, this argument
               is evaluated true if it returns an abort-severity level of 0
               (zero).)

               Refer to Using Your Aegis Environment for more information on
               shell variables.

     command ... (required)
               Specify the command(s) or program(s) to execute if condition
               returns true.

EXAMPLES
     $ eon
     $ K := 3                         (set var K = 3  )
     $ while ((^K > 0))
     $_ do args ((^k)); k := ^k - 1   (body of while  )
     $_ enddo
     3                                (output of while)
     2                                                        .
     1                                                        .
     $



SEE ALSO
     More information is available.  Type

     help  abtsev   For more information on abort-severity levels

     help  exit     For details about exiting from a while loop

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