el:while [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

el:while

## While / End While

### Format

while booleanexpression
statement(s)
end while

### Description

Execute the statement(s) inside the while loop until the booleanexpression evaluates to false. While / End While executes the statements zero or more times. The test is done before the code in the loop is executed.

### 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

### Example

    r = 1
    while r < 6
      print r
      r = r + 1
    end while

will display

    1
    2
    3
    4
    5

### New To Version

0.9.4g

el/while.txt · Last modified: 2014/01/11 23:26 (external edit)