Variables¶
The variable stores the current value of the program. The categories change according to the variables created in the project; with the button Create variable you add another name. The variable menu allows selection, renaming and deletion.
Variable value (variables_get)¶
What it does: Returns the current value of the selected variable. It has no input for a value; connects to another block, such as a listing, compare, dashboard or dynamic scene.

Set variable (variables_set)¶
What it does: Replaces the value of the selected variable with the value from the input. It does not return a result. Suitable for default settings after launch and for later updates.

skore = 0
Change variable by (math_change)¶
What it does: Adds the number from the input to the current value of the variable. A negative number will decrease the value. Use for numeric counters, such as scores or passes; do not increase the text variable like this.

Good to know¶
- The type of value determines the assigned content: number, text, logical value or, for example, a list. The variable name does not restrict the type.
- Set a meaningful default value before first use. It is not enough to expect a numeric zero for a text or list variable.
- Common project variables are shared in the program. Parameters of custom functions are separate inputs of the given call.
- Variable in RAM will not survive reboot. Use pvstore to store settings.
- You can read the current values while running in the debug window; tracepoint does not stop the program because of this.
- Renaming may change keys in newly saved INI file. This will not rename or convert the old file itself.