49
edits
| Line 52: | Line 52: | ||
=== Change if exists === | === Change if exists === | ||
In this | In this example let's pretend 'bob' is a Client module variable. Client when started will create 'bob' with a default value in the 'global' context. | ||
* Variable 'bob' doesn't exist, and 'bob' is not the name of anything else. | * Variable 'bob' doesn't exist, and 'bob' is not the name of anything else. | ||
<kua> | <kua> | ||
| Line 77: | Line 77: | ||
> bob | > bob | ||
'bob' is '8081' | 'bob' is '8081' | ||
</kua> | |||
=== Macro === | |||
In this example 'bob' is still a Client module variable. We want to check the old value of bob before restarting the client. And then | |||
* Check the value of bob, to note the old value. Stop the service. Then start client with out own default or old value, and then change the value after started. Client was not started previously. | |||
<kua> | |||
> bob; client stop; client start; var bob 8080; bob 8081; bob | |||
Unknown: bob | |||
Client not started. | |||
Client started. | |||
8081 | |||
</kua> | </kua> | ||
== Notes == | == Notes == | ||
* | * | ||