Assign Value to Variable#
The block sets new values for one or more variables. The new value of a variable can be either a constant (a number, a text string) or an expression using other variables and/or functions.
In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the $ symbol, and string constants must be enclosed in quotes. A variable can be selected from those declared in the Variables panel, and you can also manually enter the name of a new variable or a variable previously used in other blocks, even if that variable was not declared in the Variables panel.
Examples of expressions that can be used in the "Value" properties are available by clicking the buttons
next to the corresponding properties.
| Variable 1 | [Variable] The name of the first variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 1 | [Any data type] The new value for the first variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 2 | [Variable] The name of the second variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 2 | [Any data type] The new value for the second variable. The property is ignored if the name of the second variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 3 | [Variable] The name of the third variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 3 | [Any data type] The new value for the third variable. The property is ignored if the name of the third variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 4 | [Variable] The name of the fourth variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 4 | [Any data type] The new value for the fourth variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 5 | [Variable] The name of the fifth variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 5 | [Any data type] The new value for the fifth variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 6 | [Variable] The name of the sixth variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 6 | [Any data type] The new value for the sixth variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 7 | [Variable] The name of the seventh variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 7 | [Any data type] The new value for the seventh variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 8 | [Variable] The name of the eighth variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 8 | [Any data type] The new value for the eighth variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 9 | [Variable] The name of the ninth variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 9 | [Any data type] The new value for the ninth variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Variable 10 | [Variable] The name of the tenth variable to which a new value needs to be assigned. You can select from the dropdown list a variable that was previously declared in the Variables panel, as well as enter the name of a new variable or one previously used in another block, even if it was not declared in the Variables panel. |
| Value 10 | [Any data type] The new value for the tenth variable. The property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (a number, a text string) or an expression using other variables and/or functions. In the new value of the variable, it is allowed to use an expression involving the same variable. Remember that here and in other blocks, the variable names used in expressions must start with the |
| Error Handling Level | Select the error handling level. Possible values:
If "Default" is selected, the value of the "Start" block of this diagram will be used. |
| Message Level | Select the message level that blocks will output during operation. Possible values:
If "Default" is selected, the value of the "Start" block of this diagram will be used. |
| Error Text | [Text] Returns detailed information about the error in case of incorrect execution of the block's work. |