I'm new to BASIC overall and decided to pick it up. While looking through a program coded in it so I can learn, I saw that they used a technique of skipping to parts of code they want to run by typing "GOTO {line number}", or just saying "IF {expression} then GOTO {line number}" at least I believe it's a line number. The author put a number at the start of every line that goes up by 10 each line, and sometimes it goes up by hundreds. This is a snippet:
Code: Select all
10 PRINT "Hello. How old are you?"
20 INPUT A
30 IF A < 13 THEN 100
40 PRINT "You're older than 13."
50 END
100 "You're younger than 13.
110 END
Thank you :)