goto label
Jumps to a target label in the function and proceeds from there
with the subsequent instructions. label may be any name followed by a colon as target mark anywhere between two instructions in the same function.
Parameters:
Label - jump targetSpeed:
FastRemarks:
- It is normally not recommended to use goto in your scripts, as this can
lead to BASIC-style 'spaghetti code'. This command is supported for nostalgic
reasons only.
-
The target label must be within the same winged brackets ({ .. }) as the goto instruction.
Example (lite-C):
loop:
x=x+1;
if (x < 100)
goto loop; // jump to label "loop"
//...
See also:
if,
while
► latest
version online