End subroutine

Verb: endSub

Terminates a subroutine created by the Start Subroutine command.

Syntax

endSub

Example

The command terminates a subroutine created by the Start Subroutine command, which was called by the Run Subroutine command.

goSub --label newSubSubroutine
beginSub --name newSubSubroutine
	logMessage --message "This is a log running inside a subroutine." --type "Info"
// Ends the subroutine.
endSub

Remarks

This command is automatically placed in the script when using the Start Subroutine command.