Increases the existing value of a numeric user variable with the given name (in the specified scope) by the given value.
This function may be useful for accumulating total sums. Basically, it is a shortcut of the following expression:
setVar(name, getVar(name).toNumber() + value)
scope
If this parameter is not specified, the global scope is assumed by default.
name
If no variable with that name existed before or the current variable value isn't numeric, the generator will show an error message.
value
setVar(), getVar(), getNumberVar(), toNumber()