Variables
Variables allow you to store, retrieve, and manipulate data within the script. They are essential for keeping track of changing values, such as sensor readings, user inputs, or counters.
set

Creates a new variable or changes an existing variable's value.
Parameters:
Variable Name (String): The name of the variable to set.
Value (Any type): The value to store in the variable.
Example:

get

Retrieves the current value of a variable.
Parameters:
Variable Name (String): The name of the variable whose value you want to access.
Returns:
Any type: The current value of the specified variable.
Example:

change

Modifies a numeric variable by adding a value to it.
Parameters:
Variable Name (String): The name of the variable to modify.
Value (Number): The amount to add to the variable.
Example:

Dropdown Menu

The variable dropdown menu provides options to:
Select existing variables
Rename selected variable
Delete selected variable
Renaming or deleting a variable affects all blocks that use that variable.
Last updated