Skip to main content

CloudVariableBank.GetVariable(string key)

Returns value assigned to a key. It throws an error if the key does not exist.

Parameters:

NameTypeDescription
keystringThe key associated with the variable.

Returns:

typeDescription
anyThe value assigned to the key.

Usage

---@type CloudVariableBank
local cloudvariablebank;

---@type string
local key;


local val0 = cloudvariablebank.GetVariable(key)