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

 WHILE expression
 .
 . [statements]
 .

 WEND

    Terminates the definition of a WHILE/WEND loop.

  expression    A numeric expression.

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

      Notes:    QuickBASIC 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 QuickBASIC 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 WHILE

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