Aye. As I mentioned previously, exiting from a SUB has zero bad repercussions.
Unless...
Now, in the above, you're going to have issues eventually, and some folks would say "SEE?!! YOUR EXIT SUB EXPLODED THE PROGRAM!!!" -- which isn't *actually* the issue. The problem is you used an EXIT SUB to exit the sub WITHOUT returning from the GOSUB first. It's the GOSUB and the lost RETURN which is the true problem, and not the EXIT SUB, but it's still something to know to watch out for, if you ever use the routines in combination like that.
Unless...
Code: (Select All)
SUB foo
FOR i = 1 to 100
GOSUB fooGosub
NEXT
EXIT SUB
fooGosub:
PRINT i
IF i = 10 THEN EXIT SUB
RETURN
END SUB
Now, in the above, you're going to have issues eventually, and some folks would say "SEE?!! YOUR EXIT SUB EXPLODED THE PROGRAM!!!" -- which isn't *actually* the issue. The problem is you used an EXIT SUB to exit the sub WITHOUT returning from the GOSUB first. It's the GOSUB and the lost RETURN which is the true problem, and not the EXIT SUB, but it's still something to know to watch out for, if you ever use the routines in combination like that.