What it does
CloudDataVariable reads from an Extras object without changing it. It takes varName (a string) and defaultValue (a string), and answers a string.
Syntax
CloudDataVariable(varName string, defaultValue string) → stringParameters
| Name | Type |
|---|---|
| varName | string |
| defaultValue | string |
Every form returns
string
Example · generated
DO Print(CloudDataVariable("player", "value")) Sync()LOOPCloudDataVariable 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.