< GLBasic Programming < BASIC

This is the use of GOTO:

// A GOTO sample 
beginning:
LET a=RND(600)
LET b=RND(400)
PRINT "Wow",a ,b
SHOWSCREEN
MOUSEWAIT
GOTO beginning

Eplanation

It repeats the part "beginning", so the numbers change fast.

This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.