GetUserVar
Use [Twitch](/api/csharp/twitch/globals) and [YouTube](/api/csharp/youtube/globals) methods instead
Signature
public T GetUserVar<T>(string userName, string varName, bool persisted = true)
Parameters
userName
string required
No description provided.
varName
string required
The string name of the global variable
persisted
bool
Default:
True
To get, set, or unset persisted global variables, set to true or leave empty.
To get, set, or unset temporary/non-persisted global variables, set to false.
Return Type
T
Example
CPH.GetUserVar(userName, varName);
CPH.GetUserVar(userName, varName, persisted);