Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo Basic - <b>while begin definition of while/wend loop</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
WHILE                    Begin Definition of WHILE/WEND Loop

 WHILE expression
 .
 . [statements]
 .
 [EXIT WHILE]
 WEND

    Begins the definition of a WHILE/WEND loop.

  expression    A numeric expression.

   -------------------------------------------------------------------------

      Notes:    Turbo Basic starts by evaluating expression. If expression
                is nonzero (true), the next statement is executed. If
                expression is zero (false), control passes to the first
                statement following the next WEND statement.

                When Turbo Basic encounters the WEND statement, it
                reevaluates the expression argument to the most recent
                WHILE. If that argument is still nonzero (true), the
                process is repeated; otherwise, execution continues at the
                next statement.

                WHILE-WEND loops may be nested to any level of complexity,
                but there must be a WEND for each WHILE.

See Also: DO FOR LOOP NEXT WEND

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson