<< Click to Display Table of Contents >> Home mIoTa BASIC > mIoTa BASIC Language Reference > Statements > Program Flow Commands > Labels and GOTO Statement |
Labels serve as targets for the GOTO statement. Mark the desired jump point just before the target statement with a colon and label like this:
:mylabel u1 = u2 +5; // this is where the statement 'GOTO mylabel;' will jump to! |
The label given must be a valid identifier and there should be no space between the colon and the label name.
Using the GOTO command to jump ..
Goto mylabel; // jump to mylabel position u3 = 'a'; // this assignment command will not be executed |
or
// using a conditional jump if a=5 then Goto mylabel; |
Related topics: Identifiers