[<<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
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson