Alertra Script Language 1.9

gosub

Cause execution of the script to jump to a given label in the script. Script labels are created by placing a ":" and then the name of the label. Label names must start with a character and cannot have spaces.

'gosub' differs from goto in that you can return from a 'gosub' call and resume script execution with the next command after the 'gosub'.

usage: gosub [label]

parameters:

req name type description
Y label literal The script label to jump to.

examples

gosub check_site

Assuming the script contains a label ":check_site", execution of the script will continue with the line after the label.


Alertra Script Language: Language Reference