Previous: update, Up: Commands


3.34 While

Syntax:

           while (<expr>) {
               <commands>
           }

Execute a block of commands repeatedly so long as <expr> evaluates to a non-zero value. This command cannot be mixed with old-style (un-bracketed) if/else statements. See `if`.