Api > CloudVariableBank > GetVariable()
CloudVariableBank.GetVariable(string key)⚓︎
Returns value assigned to a key. It throws an error if the key does not exist.
Parameters:⚓︎
Name | Type | Description |
---|---|---|
key | string | The key associated with the variable. |
Returns:⚓︎
type | Description |
---|---|
any | The value assigned to the key. |
Usage⚓︎
---@type CloudVariableBank
local cloudvariablebank;
---@type string
local key;
local val0 = cloudvariablebank.GetVariable(key)