Variables

Variable: the named object that can contain only one value of the particular type. The variables values can be used in calculations, for example, in the following nodes: Calculator, Condition, etc. The variables values can be also used as control variables to set parameters of the node settings.

It is possible to create variables using one of the following methods:

When creating the variable, it is required to set the following information:

  • The name must be unique in one set of variables. It can consist of the capital or lower case Latin letters, underscore characters and digits. The first name character can't be a digit. The name is used to specify the variable in the calculator expressions.
  • Caption: the name that consists of any characters. It is a clarification for a user.
  • The Variable data type.
  • Value.

The ports interacting with the sets of variables are graphically displayed as follows:

  • — input port;
  • — output port.

Important: The outpot port for variables can have a connection line only with the input port for variables.

The Megaladata components specially designated for operations with sets of variables are listed below:

  • Replace (variables) enables to replace the values of the selected variables to the values from the replacement table.
  • Calculator (variables) enables to create the new variables according to the entered expressions. The variables supplied to the input port can be used in the expressions.
  • Union of variables enables to combine two or more sets of variables into one set.
  • Variables to table enable to transform a set of variables to a data table.
  • Table to variables enables to transform a data table to a set of variables.


Articles in Section:

results matching ""

    No results matching ""