Engine:CCMD var: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:
== Arguments ==
== Arguments ==
* name - name for new variable
* name - name for new variable
* value - the value to set
* value (optional) - the value to set. If no value, then prints value if exists
 
== Examples ==
<kua>
:var bob
Unknown: bob
:var bob fred
:var bob
'bob' is 'fred'
</kua>


== Notes ==
== Notes ==
*
*

Revision as of 23:57, 13 October 2023

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