Chapter 4
The GOTO command
Let me show you the GOTO command.
You read the title. It said Chapter 4. Don't read that, read the wording below it. It says The GOTO command. Lemme spell that. T-H-E- -G-O-T-O- -C-O-M-M-A-N-D. Cool, huh?

PRINT "1. An annoying message" 'Show the options the victim has
PRINT "2. Simple math"
PRINT "3. Exit this program"
INPUT "What is our choice, Sherlock Foams?" , choice ' Ask the victim for his choice
SELECT CASE choice 'Bet you knew that was coming! (If you don't understand, Go through tutorial 3)
CASE IS = 1
GOTO MESSAGE
CASE IS = 2
GOTO MATH
CASE IS = 3
END
END SELECT

;
MESSAGE:
FOR i = 1 to 50
LOCATE 1 , 1
PRINT "I can count to 50. See?"
LOCATE 2 , 1
PRINT i
NEXT
END
MATH:
PRINT  "1 + 1 = 2.Cool, Huh?"





Hosted by www.Geocities.ws

1