Talk:GOSUB and RETURN (Command)/@comment-26059560-20150806233802/@comment-5334617-20150807134715

By 'consecutive' GOSUBs, I mean one GOSUB executed right after another (with no RETURN in between). Thus, they need not be textually consecutive; just temporally consecutive.

If you have a NEXT in a subroutine where the corresponding FOR was not earlier in the same subroutine, your program structure is kind of messed up. Most programming languages do not even permit this kind of thing. It will leave one element on the stack (or more, if the NEXT is in a subroutine in a subroutine from where the corresponding FOR is).