Script Cmd: GOSUB
GOSUB {tag}
Call some tagged subroutine within the script. It is assumed that at some point the subroutine will be terminated by a RETURN statement.
A tag is simply the first white-space delimited text on any given line of a comment. The tag is searched from from top-down in the script file and uCon will not distinguish between tagnames embededd within each other. In other words, if you have a tag "FOO" and "FOOBAR", then GOTO/GOSUB FOO will match on whichever tag (FOO or FOOBAR) it finds first. As a rule, I simply terminate tags with a colon and always use the full text string.
A comment is any line that starts with a '#'.
Refer to EXAMPLE_2 on the main scripting page for a working example of the GOSUB command.