Engine:CCMD alias: Difference between revisions

No edit summary
Line 27: Line 27:
> bob
> bob
fred
fred
</kua>
=== To a variable ===
* 'bob' called without a value. No command, variable or alias named 'bob' exist.
<kua>
> bob
Unknown: bob
</kua>
* Creates an alias 'bob' and sets to 'fred'.
<kua>
> alias bob fred
</kua>
* Same as the first example, but now alias 'bob' exists. The 'fred' command in the 'bob' alias script runs, and 'fred' doesn't exist.
<kua>
> bob
Unknown: fred
</kua>
* Create variable 'fred'.
<kua>
> var fred james
</kua>
* Run 'bob'
<kua>
> bob
'fred' is 'james'
</kua>
* Try to set 'fred' through 'bob'. Value remains the same because 'bob' is only the statement "fred".
<kua>
> bob alan
> bob
'fred' is 'james'
</kua>
</kua>


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