Engine:CCMD var

Revision as of 23:57, 13 October 2023 by Bear (talk | contribs)
Console commands

Creates a new variable in the current context, if doesn't exist. If exists is ignored.

var bob fred

Arguments

  • name - name for new variable
  • value (optional) - the value to set. If no value, then prints value if exists

Examples

:var bob
Unknown: bob
:var bob fred
:var bob
'bob' is 'fred'

Notes