GoSub

Last Modified: 1/4/2021

Jumps to LineLabel with the ability to come back using the Return command.

Arguments

NameTypeRequiredDescription
LineLabel Line Label Yes The line label to jump code execution to.

Example

Syntax: GoSub <MyLabel>
    GoSub Hello
    Print "World"
    
    End
    
Hello:
    Print "Hello";
    Return

Remarks

If you don't need to return to where you used the GoSub command, you could use the GoTo command instead.

See Also

GoTo, Return