-
Notifications
You must be signed in to change notification settings - Fork 4
Variables & Constants Tab
AutomationDirect edited this page Jan 14, 2020
·
10 revisions

In ProductivityBlocks, there are six types:
For each type, there is a variable block (above left) and a constant block (above right). A variable block represents a variable in the program, and can have an editable name. Constants have no name, but their value is editable.
Each type also has a shape associated with it. Variable and constant blocks may be used wherever there is a socket matching their shape:
Variables are created automatically whenever a variable block with a new name is connected to the program. Variables that are not set will have a default value (given below). To set the value of a variable, use one of the 'Set Variable' blocks:
Variables that are not set in the program will have default values:
-
Integer:
0 -
Long:
0UL -
Double:
0.0 -
Boolean:
false -
Character:
' ' -
String:
""
- Variable blocks have a darker color than constant blocks.