📖⚡BRANCH
GOTO a label - via a lookup table of label names.
Not recommended for good programming style.
The BRANCH command uses an Index Number to lookup a Label Name and performs a GOTO the Label Name.
The first label has an index of 0.
If the index was higher than the available list of label names then the BRANCH command does nothing.
This command is not recommended as it uses the outdated GOTO command.
Syntax
BRANCH Index , (Label0 , Label1 , Label2 , Label3 .. LabelN)
Example
REM let's jump to Label1
    LET B0 = 1
    BRANCH B0 , ( LABEL0 , LABEL1 , LABEL2)
Â
' BRANCH Example
' branch.txt
' This command is NOT recommended
DO
FOR B0 = 2 TO 4
BRANCH B0 , (branch0,branch1,branch2,branch3,branch4)
carryOn:
NEXT
LOOP
branch0:
GOTO carryOn
branch1:
GOTO carryOn
branch2:
GOTO carryOn
branch3:
GOTO carryOn
branch4:
GOTO carryOn
branch5:
GOTO carryOn
Related Commands:
Â