action:Try_or_Catch
Differences
This shows you the differences between two versions of the page.
| action:Try_or_Catch [2021/10/12 08:06] – created peternlewis | action:Try_or_Catch [2021/10/12 08:11] (current) – peternlewis | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Try/Catch Action ====== | ====== Try/Catch Action ====== | ||
| - | The *Try/Catch* action (v10.0+) allows you to execute a sequence of actions and catch any failure. If any action in the *Try* sequence would abort the macro, the macro instead continues executing the *Catch* section, setting the Action Result, available in the [[token: | + | The *Try/Catch* action (v10.0+) allows you to execute a sequence of actions and catch any failure. If any action in the *Try* sequence would abort the macro, the macro instead continues executing the *Catch* section, setting the Action Result, available in the [[token: |
| + | |||
| + | Keep in mind the Action Result will be cleared at the end of any successful action, so if you want to know why the actions failed you will need to handle the Action Result in the first action of the *Catch* sequence, perhaps by saving the *%ActionResult%* in a variable. | ||
| If the actions in the *Try* sequence execute to completion, the *Catch* sequence is not executed. | If the actions in the *Try* sequence execute to completion, the *Catch* sequence is not executed. | ||
action/Try_or_Catch.1634025972.txt.gz · Last modified: by peternlewis
