Skip to content

$resetGlobalUserVar

$resetGlobalUserVar will set a given global user variable to its default value.

Usage

$resetGlobalUserVar[varname;table?]

Parameters

FieldTypeDescriptionRequired
varnamestringVariable name.true
table?stringVariable table.false

Example(s)

This will reset a variable called “Example”:

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