Engine:CCMD varedit: Difference between revisions

 
(3 intermediate revisions by the same user not shown)
Line 25: Line 25:
Unknown: bob
Unknown: bob
</kua>
</kua>
Variable 'bob' doesn't exist, and 'bob' is not the name of anything else.
No 'bob' in the context. Variable 'bob' doesn't exist, and 'bob' is not the name of anything else.
 
<kua>
<kua>
> bob fred
> bob fred
Unknown: bob
Unknown: bob
</kua>
</kua>
Tries to set variable 'bob' to 'fred'. Fails as 'bob' does not exist.  
Tries to set variable 'bob' to 'fred'. Fails as 'bob' does not exist.
 
<kua>
<kua>
> set bob fred
> set bob fred
</kua>
</kua>
Uses the 'set' command to create the variable 'bob' and set value to 'fred'.  
Uses the 'set' command to create the variable 'bob' and set value to 'fred'.
 
<kua>
<kua>
> bob
> bob
'bob' is 'fred'
'bob' is 'fred'
</kua>
</kua>
Same as the first example, but now 'bob' exists.
Same as the first example, but now 'bob' exists.
 
<kua>
<kua>
> bob james
> bob james
Line 45: Line 49:
'bob' is 'james'
'bob' is 'james'
</kua>
</kua>
Try to set existing 'bob' to 'james', value changes.
Tries to set existing 'bob' to 'james', value changes.


=== Change if exists ===
=== Change if exists ===