Increment or Decrement Global Variable
Increment or decrement a global variable.
This variable will be created if it does not already exist, or updated to the new value if it does. If the variable value is not currently a number, this block will fail.
Inputs
Variable Prefix
The prefix of the variable you would like to increment.
Example: global
Variable Name
The name of the variable you would like to increment.
Example: variables
Change Amount
Provide a positive (eg +1) or negative (eg -1) number to increment or decrement the variable by. If no +/- prefix is provided, value will be assumed to be positive.
Examples: 1
(add one to the current value), -2
(subtract two from the current value), +6
(add six to the current value).
Outputs
Variable Value
The new value of the variable.
Example: 19