$setVar
$setVar
will change the value of a given global variable.
Usage
$setVar[varname;value;table?]
Parameters
Field | Type | Description | Required |
---|---|---|---|
Varname | string | Variable name. | true |
Value | string | New Variable value. | true |
Table? | string | Variable table. | false |
Example(s)
This will change the value of “Example” to “This is a value”:
1client.command({2 name: "setVar",3 code: `4 $setVar[Example;This is a value;main]5 `6});