IncrementAllTrovoUsersVar

Increments the value of a specific user global variable for all Trovo users

Signature

public void IncrementAllTrovoUsersVar(string varName, object value, bool persisted = true)

Parameters

varName
string required

Name of the user variable

value
object required

Value of how much the user variables should be incremented by

persisted
bool
Default:
True
  • true - Persisted user variables will be affected
  • false - Non-persisted user variable will be affected

Return Type

void

Example

CPH.IncrementAllTrovoUsersVar(varName, value);
CPH.IncrementAllTrovoUsersVar(varName, value, persisted);