Allows branching to labeled statements in SPL functions.
GOTO identifier:
identifier |
- |
A string. The label for the target of the GOTO. |
In an SPL file, use the GOTO to jump to statements labeled by the identifier:
The SPL function, TestVal, returns a 1 if the value is less than 1000, and returns 99 if the value is greater than or equal to 1000. To avoid the GOTO, the function could be written as:
The function can be simplified further as: