SecondBASIC Documentation v3

Home / Command Reference / GoSub

GoSub

Description: Jumps the program execution to <LineLabel>. You can return to the jump point using the Return command.

Syntax:

GoSub <LineLabel>

Part Description
<LineLabel> Required. The location you want the program execution to jump to.

Example:

    GoSub Hello
    Print "World"
 
    End
 
Hello:
    Print "Hello"
    Return