-
-
Notifications
You must be signed in to change notification settings - Fork 6
SetVar
Anthony Headley edited this page Apr 19, 2020
·
2 revisions
Name | Description | Optional |
---|---|---|
object:variables | A referance to Variables Object. e.g. GlobalVars(), PluginVars(), AddonVars(), UserVars() | |
string:varName | Variable name to set | |
var:value | The resulting value (number, string, ...) |
string: "Ok" string: "Syntax Error" string: "Ilegal Command" ...
local userVar = UserVars()
local setSuccess = SetVar(userVar, "COUNTER", 42)
local result = GetVar(userVar, "COUNTER") -- result = 42
local delSuccess = DelVar(userVar, "COUNTER")