GET
Jump to navigation
Jump to search
GET, GET$[edit]
Syntax[edit]
GET($)
Description[edit]
These functions wait for a key to be pressed on the keyboard and then return the key as either ASCII (GET) or the character (GET$). The ASCII value is the numeric value associated with each key by the computer.
Note The function only works when the cursor is in the text window. Click the cursor in the text window before pressing a key.
Example
Switch on motor 'A' if the 'F' key is pressed
IF GET$ = "F" THEN FORWARD A