Labels
Not all features mentioned here are implemented
Labels
A label in Loop is like: <identifier>:
, it serves as a "jump point". They require to be unique in the current scope.
The requirements for the identifier for a label is the same as a Variables. Here are a few examples of how a label is defined.
Goto
The keyword "goto" is needed to jump to a label. The syntax is as follows: goto <label>
. When using a label, you need to reference a label.
Last updated