Description
Branches unconditionally to any label within the BASIC+ program.
Syntax
GoTo label
Parameters
The GoTo statement has the following parameters.
Parameter | Description |
---|---|
label | When BASIC+ encounters a GoTo statement, program control is unconditionally transferred to the designated label. The statements following that label are executed. The label can be numeric or alphanumeric. |
Use the designated label anywhere in the program. Control may be transferred to statements either following or preceding the GoTo statement.
The GoTo statement should be used very carefully to avoid confusion. For structured programming, BASIC+ provides other statements.
Caution: Do not use GoTo to jump into a For...Next loop, a Loop...Repeat loop, or into the middle of an internal subroutine.
See also
For...Next with While or Until, GoSub, Loop...Repeat, On...GoSub, On...GoTo