en:do [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:do

## Do / Until (Statement)

### Format

do
statement(s)
until boolean_expr

### Description

Execute the statement(s) inside the do loop until the boolean_expr evaluates to true. Do / Until executes the statements one or more times. The test is done after each time the code in the loop is executed.

### Example

    t = 1
    do
      print t
      t = t + 1
    until t > 5

will print

    1
    2
    3
    4
    5

### See Also

Begin Case / Case / End Case, Call, Continue Do, Continue For, Continue While, Do / Until, End, Exit Do, Exit For, Exit While, For / Next, Function, Global, Goto, Gosub, If Then, Pause, Ref, Rem, Return, Subroutine, While / End While

### New To Version

0.9.4g

en/do.txt · Last modified: 2014/02/09 20:41 by admin