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'.
- Applies To:
- See Also:
- Related Create:
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
loop ; loop
Submit an Example
Submit Your Own Code!
You must be logged in to submit code examples. Login now.