-
-
Notifications
You must be signed in to change notification settings - Fork 5
GetVar
Anthony Headley edited this page Apr 19, 2020
·
2 revisions
Name | Description | Optional |
---|---|---|
object:varible | A referance to Variables Object. e.g. GlobalVars(), PluginVars(), AddonVars(), UserVars() | |
string:name | Variable name to retrive |
var: value (number, string, ...) nil: if no value
local userVar = UserVars()
local setSuccess = SetVar(userVar, "COUNTER", 42)
local result = GetVar(userVar, "COUNTER") -- result = 42
local delSuccess = DelVar(userVar, "COUNTER")