CloudDataVariable

Family: Extras · One form

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) → string

Parameters

NameType
varNamestring
defaultValuestring

Every form returns

string

Example · generated

DO  Print(CloudDataVariable("player", "value"))  Sync()LOOP

CloudDataVariable 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.

21 commands in Extras