makeVar

fun makeVar(name: String = IdGenerator.makeRandomId(6), value: JsonPrimitive = JsonPrimitive(""), cloud: Boolean = false): Variable

Creates a global variable (scoped to the stage).

Parameters

name

The name of the variable.

value

The initial value.

cloud

Whether it is a cloud variable.