Variables
Variables store and manage data in your scripts. Use variables to track changing values like sensor readings, counters, states, or calculated results.
set

Assigns a value to a variable. If the variable doesn't exist, it's created automatically.
Parameters:
Variable: Select from the dropdown or create a new variable
Value (Any): The value to store
Example:

get

Retrieves the current value stored in a variable.
Parameters:
Variable: Select which variable to read
Returns:
Any: The current value of the variable
Example:

change

Increments or decrements a numeric variable by adding a value to it. Use negative values to subtract.
Parameters:
Variable: Select which variable to modify
Value (Number): The amount to add (use negative for subtraction)
Example:

Managing Variables

The variable dropdown menu in each block provides options to:
Select existing variables from your script
Rename the selected variable (updates all references)
Delete the selected variable (removes from all blocks)
Renaming or deleting a variable affects all blocks that use it. Be careful when modifying variables used in multiple places.
Last updated