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