Engine:CCMD context: Difference between revisions

Line 23: Line 23:
global
global
</kua>
</kua>
* Same as the first example, but now bob exists.   
* Same as the first example. But change to the known 'client' context, which is addressable from the 'global' context.   
<kua>
<kua>
> var bob
> context client
'bob' is 'fred'
</kua>
</kua>
* Try to set existing 'bob' to 'james', value changes.  
* Start the client service, and change the client 'bob' variable which exists only in the 'client' context.
<kua>
<kua>
> var bob james
> start
> var bob
Client is started.
'bob' is 'james'
> bob 8081
> bob
'bob' is '8081'
> context
client
</kua>
* Change back to the 'global' context. Test to see that the bob variable in 'client' is not in 'global'.
<kua>
> context global
> context
global
> bob
Unknown: bob
</kua>
</kua>


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