- Name:
- exit
- Syntax:
-
EXIT
- Description:
-
Exit is used to immediately terminate a do...loop or for...next program loop.
The exit command immediately terminates a do...loop or for...next program loop. It is equivalent to 'goto line after end of loop'.
Exit a do / loop
If the variable b1 = 1, exit the do / loop structure
- Code Example:
-
main: do ; start loop if b1 = 1 then exit ; exit the loop when b1 = 1 end if loop ; loop
Copy Code Submit an Example
Submit Your Own Code!
You must be logged in to submit code examples. Login now.