GET: Difference between revisions

From Smart Box
Jump to navigation Jump to search
(Created page with "== Syntax == GET($) == Description == 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 == Asso...")
 
No edit summary
 
Line 1: Line 1:
= GET, GET$ =
== Syntax ==
== Syntax ==



Latest revision as of 19:13, 6 October 2023

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

Associated keywords[edit]