Skip to content

$getVar

$getVar will return the value of a global variable

Usage

$getVar[varname;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
table?stringVariable table.false

Example(s)

This will return the value of a variable called “Example”:

1
client.command({
2
name: "getVar",
3
code: `
4
$getVar[Example;main]
5
`
6
});