Engine:CCMD var: Difference between revisions
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
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'