IncrementOrCreateKickUsersVarById
Increments the values of Kick user variables for a list of user IDs. If the variable does not exist for a user, it will be created and set to the incremented value.
Signature
public void IncrementOrCreateKickUsersVarById(List<string> userIds, string varName, object value, bool persisted = true)
Parameters
userIds
List<string> required
List of user IDs to increment the variable for. If a user ID does not exist, it will be ignored.
Example: ["123456789", "987654321"]
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 affectedfalse- Non-persisted user variable will be affected
Return Type
void
Example
CPH.IncrementOrCreateKickUsersVarById(userIds, varName, value);
CPH.IncrementOrCreateKickUsersVarById(userIds, varName, value, persisted);