Open main menu
Home
Random
Log in
Settings
About AddOn Studio
Disclaimers
AddOn Studio
Search
Editing
Engine:CCMD context
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Examples == === Default values === * Try to change to a non-existent context. <kua> > context bob Unknown: bob </kua> * Called with no name. The current context is printed. <kua> > context global </kua> === Context separation === * Same as the first example. But change to the known 'client' context, which is addressable from the 'global' context. <kua> > context client </kua> * Start the client service, and change the client 'bob' variable which exists only in the 'client' context. <kua> > start Client started. > 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> === Without switching === In these examples a context is addressed directly without using the context command. * Show current context. <kua> > context global </kua> * Start the client service directly from global without switching. <kua> > client start Client started. </kua> * Set the 'bob' variable in client, check its value in 'client', and verify it's not in 'global'. <kua> > client bob 8081 > client bob 'bob' is '8081' > bob Unknown: bob </kua>
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)
Close
Loading editor…