Engine:CCMD varedit: Difference between revisions

Line 79: Line 79:
</kua>
</kua>
=== Macro ===
=== 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
In this example 'bob' is still a Client module variable. We want to check the old value of bob before restarting the client.  


* 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.
* Check the value of bob. Stop the service. Then start client and then change the value after started. Client was not started previously.
<kua>
<kua>
> bob; client stop; client start; var bob 8080; bob 8081; bob
> bob; client stop; client start; bob 8081; bob
Unknown: bob
Unknown: bob
Client not started.
Client not started.