Gosub <Lable x>
Lbl <Lable x>
GoSub: [F3](CMD) -> [down]/[up] -> [E](E:Gosub)
Lbl: [F3](CMD) -> [down]/[up] -> (4:Then)
Return: [F3](CMD) -> [down]/[up] -> (5:Else)
- Go to Lbl <label x> and then at the first Return below the Lbl, go back to next to Gosub <lable n>.
- Gosub can jump to Lbl <label n> wihtin a program file.
Sampke code to see how Gosub and Return works;
Sample code: MAIN
Then call GOSUB;
Sample code: GOSUB
The output is,
This output tells you that the first Return comamnd returns back to the main program and the second Return command returns back to next to Gosub A.