What it does
ReadPreferenceQuad takes key (a string) and defaultValue (an integer), and answers an integer.
Syntax
ReadPreferenceQuad(key string, defaultValue integer) → integerParameters
| Name | Type |
|---|---|
| key | string |
| defaultValue | integer |
Every form returns
integer
Example · generated
DO Print(ReadPreferenceQuad("score", 1)) Sync()LOOPReadPreferenceQuad is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.