|
| KiXtart Command Reference |
GOSUBactionCauses script execution to continue at the first statement after a label. syntaxGOSUB <label> remarksLabel can be an expression. When a RETURN statement is encountered, script execution continues at the statement following the GOSUB statement. examples? "This demonstrates calling a subroutine" GOSUB "Demo" ? "End of demonstration " EXIT 1 :Demo ? "We are in the subroutine now " RETURN |