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>do begin definition of do/loop loop</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
DO                       Begin Definition of DO/LOOP Loop

 1. DO
    .
    . [statements]
    .
    .
    [EXIT DO]
    LOOP [{WHILE | UNTIL} expression]

 2. DO [{WHILE | UNTIL} expression]
    .
    . [statements]
    .
    .
    [EXIT DO]
    LOOP

    Begins the definition of a DO/LOOP loop.

  expression    A numeric expression. Nonzero values are equivalent to
                TRUE, while zero values are equivalent to FALSE.

       WHILE    Causes execution of the loop as long as expression is
                TRUE.

       UNTIL    Causes execution of the loop as long as expression is
                FALSE.

     EXIT DO    An optional means to escape from the loop before its
                termination.

        LOOP    Terminates the loop construct.

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

      Notes:    DO...LOOP is a general-purpose looping construct. The
                optional termination test may be supplied at either the
                beginning or the end. If no test is supplied, EXIT DO is
                the only way to break out of the loop.

See Also: FOR LOOP NEXT WEND WHILE

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