Engine:CCMD var: Difference between revisions

196 bytes added ,  14 October 2023
No edit summary
Line 8: Line 8:


== Examples ==
== Examples ==
* 'var' called with 'bob' without a value. Variable 'bob' doesn't exist.
<kua>
<kua>
:var bob
:var bob
Unknown: bob
Unknown: bob
</kua>
* Creates variable 'bob' and sets to 'fred'.
<kua>
:var bob fred
:var bob fred
</kua>
* Same as the first example, but now bob exists. 
<kua>
:var bob
:var bob
'bob' is 'fred'
'bob' is 'fred'