2,113
edits
Line 49: | Line 49: | ||
> bob | > bob | ||
'bob' is 'james' | 'bob' is 'james' | ||
</kua> | |||
== Examples == | |||
=== Change if exists === | |||
In this case lets pretend 'bob' is a Client module variable, placed in the 'global' context the client service is started. | |||
* Variable 'bob' doesn't exist, and 'bob' is not the name of anything else. | |||
<kua> | |||
> bob | |||
Unknown: bob | |||
</kua> | |||
* Tries to set variable 'bob' to 'fred'. Fails as 'bob' does not exist. Which is good. | |||
<kua> | |||
> bob fred | |||
Unknown: bob | |||
</kua> | |||
* Using the 'client' context run the Client 'start' command which will create the variable 'bob' with a default value of '8080'. | |||
<kua> | |||
> client start | |||
</kua> | |||
* Same as the first example, but now 'bob' exists. | |||
<kua> | |||
> bob | |||
'bob' is '8080' | |||
</kua> | |||
* Try to set existing 'bob' to '8081', value changes. | |||
<kua> | |||
> bob 8081 | |||
> bob | |||
'bob' is '8081' | |||
</kua> | </kua> | ||
== Notes == | == Notes == | ||
* | * |