Skip to content

$setVar

$setVar will change the value of a given global variable.

Usage

$setVar[varname;value;table?]

Parameters

FieldTypeDescriptionRequired
VarnamestringVariable name.true
ValuestringNew Variable value.true
Table?stringVariable table.false

Example(s)

This will change the value of “Example” to “This is a value”:

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