GOTO
This page was last modified 14:01, 14 May 2020 by Gdx. Based on work by Mars2000you and Snout.

Contents

Effect

Jumps to the specified line number and execute the commands 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