get
read-only$cvar.get(name: string) -> varGet the value associated with a named cvar.
| Parameter | Type | Meaning |
|---|---|---|
name | string | Name of the cvar. |
Returns var: The value.
3 natives. Read-only natives only look things up; the rest change something. Parameter types use the language's names (Types).
$cvar.get(name: string) -> varGet the value associated with a named cvar.
| Parameter | Type | Meaning |
|---|---|---|
name | string | Name of the cvar. |
Returns var: The value.
$cvar.register(name: string, description: string, default_value: var)Register a new cvar.
| Parameter | Type | Meaning |
|---|---|---|
name | string | Name of the cvar. |
description | string | Description of the cvar. |
default_value | var | Default value of the new cvar. |
$cvar.set(name: string, value: var)Set the value associatd with a named cvar. Note: nondterministic.
| Parameter | Type | Meaning |
|---|---|---|
name | string | Name of the cvar. |
value | var | Value to set. |