Exit


Exit

An Exit command will end the program and exit immediately.



Exit Do

If an Exit command is followed by Do (e.g. Exit Do), the current do loop will be exited.

For Example:

x = 0
Do
If x = 5 Then Exit Do
x = x + 1
Print x
Loop While x < 10


Exit For

If an Exit command is followed by For (e.g. Exit For), the current for loop will be exited.

For Example:

For i = 1 to 10
If i = 5 Then Exit For
Next i






Become a Patron