Advertisement
phlud

example Y/N in BASIC

Aug 2nd, 2019
1,328
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 89 PRINT "WOULD YOU LIKE TO START A NEW GAME?"
  2. 90 INPUT "PLEASE ANSWER YES OR NO > ";YN$
  3. 91 IF YN$="YES" OR YN$="Y" OR YN$="START" THEN 93
  4. 92 IF YN$="NO" OR YN$="N" OR YN$="QUIT" OR YN$="EXIT" THEN 5000
  5. 93 this line will be "yes" which continues the program and 5000 being "no" which ends the game/EOF
Advertisement
RAW Paste Data Copied
Advertisement