结束子例程

动词:endSub

终止由启动子例程命令创建的子例程。

语法

endSub

示例

该命令终止使用启动子例程命令(由运行子例程命令调用)创建的子例程。

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

备注

此命令会在使用启动子例程命令时自动放入脚本中。