mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
14 lines
334 B
Markdown
14 lines
334 B
Markdown
|
The **EXIT SUB** statement can be used in a [SUB](SUB) routine to exit before the code ends.
|
||
|
|
||
|
## Syntax
|
||
|
|
||
|
> EXIT SUB
|
||
|
|
||
|
* Use EXIT SUB to immediately EXIT a SUB if an undesired condition is created.
|
||
|
* EXIT SUB is not the same as [END SUB](END-SUB) which is required in a SUB procedure.
|
||
|
|
||
|
## See Also
|
||
|
|
||
|
* [SUB](SUB)
|
||
|
* [FUNCTION](FUNCTION)
|