What it does
ReadPreferenceFloat takes key (a string) and defaultValue (a float), and answers a float.
Syntax
ReadPreferenceFloat(key string, defaultValue float) → floatParameters
| Name | Type |
|---|---|
| key | string |
| defaultValue | float |
Every form returns
float
Example · generated
DO Print(ReadPreferenceFloat("score", 1.0)) Sync()LOOPReadPreferenceFloat 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.