Skip to content

$cvar

3 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).

get

read-only
$cvar.get(name: string) -> var

Get the value associated with a named cvar.

ParameterTypeMeaning
namestringName of the cvar.

Returns var: The value.

register

$cvar.register(name: string, description: string, default_value: var)

Register a new cvar.

ParameterTypeMeaning
namestringName of the cvar.
descriptionstringDescription of the cvar.
default_valuevarDefault value of the new cvar.

set

$cvar.set(name: string, value: var)

Set the value associatd with a named cvar. Note: nondterministic.

ParameterTypeMeaning
namestringName of the cvar.
valuevarValue to set.