exit sub
Stops subroutine execution.
Syntax:
exit sub
sdlBasic will continue program execution from the line below the
calling instruction.
Example:
sub mySub(a)
if
a>5 then: exit sub
: end if
print(a)
end sub
for a = 1 to 10
mySub(a)
next
See also sub command.