SecondBASIC Documentation v3

Home / Command Reference / While...Wend

While...Wend

Description: Repeats code while <Expression> returns true.

Syntax:

WaitRaster <Expression>
    ' Code
Wend

Part Description
<Expression> Required. The expression that is to be checked to determine the condition of the loop.

Example:

    While a < 10
        Locate 1,1: Print a
        a++
        Sleep 20
    Wend