GOTO
This page was last modified 19:53, 12 August 2021 by Mars2000you. Based on work by Gdx and Snout.

Contents

Effect

Jumps to the specified line number and execute the instructions from there.

Syntax

GOTO <LineNumber>

Parameter

<LineNumber> is a line number of your MSX program.

Example

10 GOTO 100
20 PRINT "Now it's my turn!"
30 END
100 PRINT "Me first!"
110 GOTO 20
 
RUN
Me first!
Now it's my turn!

Related to

GOSUB, ON...GOTO, ON ERROR GOTO

Compatibility

MSX-BASIC 1.0 or higher