SecondBASIC Documentation v3
Home
/
Command Reference
/
Exit
Exit
Description:
Exits out of the current <Scope>.
Syntax:
Exit <Scope>
Part
Description
<Scope>
Required. Valid <Scope>'s are:
Do, Loop
For
Function
Select, Case
Sub
Wend
Example
:
x = 0
Do
x++
If x = 5 Then Exit Do
Loop
Print x