Main Help → All Commands → Language Reference → GoSub
The GoSub
command is used to call subroutines. The calling format is
GoSub subname (arg1),(arg2),...(argn)
where
subname
is the name of the subroutine. The subroutines must be defined at the beginning of the commands.(arg1),(arg2),...(argn)
are any expressions. The total number of expressions must exactly match the number of arguments in the subroutine definition. The variables in the subroutine definition will be set equal to the values passed in the GoSub
command.