# 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 (number, 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 it is also possible to manually enter the name of a new variable or one that was 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 ![](https://3212714295-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FI0zUnKkOuy6lWt7DZ46u%2Fuploads%2Fgit-blob-0d96bd20a90084df9ffd002b2ac1f80e9d72361b%2F2025-06-02_22-27-49.png?alt=media) next to the corresponding properties.

<table data-header-hidden><thead><tr><th width="241" valign="top"></th><th width="333" valign="top"></th></tr></thead><tbody><tr><td valign="top">Variable 1</td><td valign="top"><p>[Variable] The name of the first variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 1</td><td valign="top"><p>[Any data type] The new value for the first variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 2</td><td valign="top"><p>[Variable] The name of the second variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 2</td><td valign="top"><p>[Any data type] The new value for the second variable. This property is ignored if the name of the second variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 3</td><td valign="top"><p>[Variable] The name of the third variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 3</td><td valign="top"><p>[Any data type] The new value for the third variable. This property is ignored if the name of the third variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 4</td><td valign="top"><p>[Variable] The name of the fourth variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 4</td><td valign="top"><p>[Any data type] The new value for the fourth variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 5</td><td valign="top"><p>[Variable] The name of the fifth variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 5</td><td valign="top"><p>[Any data type] The new value for the fifth variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 6</td><td valign="top"><p>[Variable] The name of the sixth variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 6</td><td valign="top"><p>[Any data type] The new value for the sixth variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 7</td><td valign="top"><p>[Variable] The name of the seventh variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 7</td><td valign="top"><p>[Any data type] The new value for the seventh variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 8</td><td valign="top"><p>[Variable] The name of the eighth variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 8</td><td valign="top"><p>[Any data type] The new value for the eighth variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 9</td><td valign="top"><p>[Variable] The name of the ninth variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 9</td><td valign="top"><p>[Any data type] The new value for the ninth variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Variable 10</td><td valign="top"><p>[Variable] The name of the tenth variable to which a new value should be assigned.</p><p>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 that was previously used in another block, even if it was not declared in the Variables panel.</p></td></tr><tr><td valign="top">Value 10</td><td valign="top"><p>[Any data type] The new value for the tenth variable. This property is ignored if the name of the first variable is not specified. The new value of the variable can be either a constant (number, string) or an expression using other variables and/or functions.</p><p>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 <code>$</code> symbol, and string constants must be enclosed in quotes.</p></td></tr><tr><td valign="top">Error Handling Level</td><td valign="top"><p>Select the error handling level. Possible values:</p><ul><li>"Default" - by default;</li><li>"Ignore" - errors are ignored;</li><li>"Handle" - errors are handled.</li></ul><p>If "Default" is selected, the value of the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Message Level</td><td valign="top"><p>Select the message level that the blocks will output during operation. Possible values:</p><ul><li>"Default" - by default;</li><li>"Release" - output is disabled;</li><li>"Debug" - main information output;</li><li>"Detailed" - detailed information output.</li></ul><p>If "Default" is selected, the value of the "Start" block of this diagram will be used.</p></td></tr><tr><td valign="top">Error Text</td><td valign="top">[Text] Returns detailed information about the error in case of incorrect execution of the block's work.</td></tr></tbody></table>
