# Abort Container

The block allows exiting from the container at any point ([Try/Catch](https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/osnovnye-bloki-main-blocks/try-catch-trycatchcontainer), [Container](https://docs.sherparpa.ru/en/sherpa-rpa/sherpa-designer/spravochnik-blokov/osnovnye-bloki-main-blocks/konteiner-collapsecontainer)). By default, to exit from the container, the "End" block must be set. After that, the exit from the container will occur through the "Exit" connector.

If there is a need to exit from the container at any point, this block must be set, and then the scenario can continue after it. If an "End" block is encountered later in the scenario, it will terminate either the previous container or the entire diagram. If the "Interrupt Container" block is placed outside the container's operation, it will not perform a return from the diagram.

<table data-header-hidden><thead><tr><th width="239" valign="top"></th><th width="324" valign="top"></th></tr></thead><tbody><tr><td valign="top">Log to</td><td valign="top"><p>[Any data type] Numeric, text constant (in quotes), variable name (starting with <code>$</code>), or any expression whose value will be logged during the robot's scenario execution.</p><p>The value can also have a complex data type, such as List, Table, or Dictionary.</p></td></tr><tr><td valign="top">Variable 1</td><td valign="top"><p>[Variable] Name of the first variable to which a new value needs to 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 used earlier 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] 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, text 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 names of variables 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] Name of the second variable to which a new value needs to 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 used earlier 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] 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, text 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 names of variables 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] Name of the third variable to which a new value needs to 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 used earlier 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] 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, text 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 names of variables 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] Name of the fourth variable to which a new value needs to 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 used earlier 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] 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, text 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 names of variables 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] Name of the fifth variable to which a new value needs to 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 used earlier 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] 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, text 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 names of variables 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">Expression 1</td><td valign="top">[Expression] The expression that needs to be executed. It must be written in PowerShell language format.</td></tr><tr><td valign="top">Expression 2</td><td valign="top">[Expression] The expression that needs to be executed. It must be written in PowerShell language format.</td></tr><tr><td valign="top">Expression 3</td><td valign="top">[Expression] The expression that needs to be executed. It must be written in PowerShell language format.</td></tr><tr><td valign="top">Expression 4</td><td valign="top">[Expression] The expression that needs to be executed. It must be written in PowerShell language format.</td></tr><tr><td valign="top">Expression 5</td><td valign="top">[Expression] The expression that needs to be executed. It must be written in PowerShell language format.</td></tr><tr><td valign="top">Log to Orchestrator</td><td valign="top">If selected, the text will also be logged to the Orchestrator if the connection to it is active.</td></tr><tr><td valign="top">Screenshot to Orchestrator</td><td valign="top">If selected, a screenshot will be taken and sent to the Orchestrator if the connection to it is active.</td></tr><tr><td valign="top">Screenshot file</td><td valign="top">[Text] Returns the full path to the created screenshot file.</td></tr></tbody></table>
