235 GET$ Purpose The GET$ function waits for a key to be pressed on the keyboard and then returns with a string containing the character pressed. See the previous keyword, GET , for a similar function and for further explanation. For example, at the end of a game program you may wish the computer to ask the player whether or not he or she wants to go again. The demonstration program below shows how this can be done. Note that when using GET$ the character typed on the keyboard will not appear on the screen. If you wish it to appear you must ask the computer to print it.
1050 A$=GET$ Example Syntax = GET$ Associated keywords GET , INKEY , INKEY$ Demonstration program PRINT "Do you want to play another game"; 2120 REM if user presses Y then 2130 REM go to line 100 2140 IF GET$="Y" THEN GOTO 100 2160 REM if it gets this far then the 2170 REM reply was not "Y" so give up! 2180 STOP