Global variables#

The global variables functionality allows to specify the variable name, rather than a specific value, as the value of blocks properties.

Note

A variable created at the project level. Visible to all blocks without exception.

 Supported values:

Type

Example

Integer values

2

Floating-point numbers

2.0

Arrays of numbers

1;2;3;4
[1.0;2.0;3.0]
<1;2>_<3;4>

Array of arrays

[[1.0;2.0],[3.0;4.0]]

Hint

Local and global variables support the same value types

 To use it, you need to select the Variables tab in the bottom panel of the application (see Fig. 1 below), switch to the Global variables tab and specify:

  1. Variable;

  2. Value;

  3. If necessary, you can add a description (see Fig. 2 below).

Important

  1. The variable name is case sensitive.

  2. Only Latin letters can be used in the variable name, as indicated by a notification under the input area (see Fig. 3 below).

Variables tab location

Fig. 1 Location of the Variables tab#

Adding a global variable and its value

Fig. 2 Adding a global variable and its value#

Example notification

Fig. 3 Example of notification#

 After adding a global variables, it can be used as a property value, including specifying it in several properties/blocks at once (Fig. 4):

Example of using a variable in a calculation

Fig. 4 Example of using a variable in a calculation#

Important

The value of the set variable will be displayed in the block properties only after the calculation is started.

 When you hover over a line with a variable, two buttons appear to the right of the description:

  • delete button - delete variable;

  • drag and drop button - manual change of the order of entered variables by dragging them with the LMB key pressed (Fig. 5):

Changing the order of variables

Fig. 5 Changing the order of variables#