Controls task flow depending on whether the last step was a success, general failure, or failed because of a specific error. Causes the steps following this action to execute if the previous step meets the specified condition. If not, execution follows the next Else or End If action, whichever comes first. Mainly used to provide custom error handling on steps that are set to ”continue on error”. This action introduces conditional steps depending on the outcome of the previous step. It is commonly used to introduce a block of steps to be carried out if the previous step fails.
Declaration
<AMIF LASTSTEP="text(options)" RESULTCODE="number">
See Also: If, If Compare Files, If Folder Exists, If Last Step, If Pixel Exists, If Process Running, If Text Contains, If Windows Exists, End If, End Select/Case, Goto, Label, Select/Case, Else
Property |
Type |
Required |
Default |
Markup |
Description |
If last step |
Text (Options) |
Yes |
Succeeded |
LASTSTEP="failed" |
Specifies the condition to be met. The available options are:
|
Error Codes |
Text |
Yes if last step failed with specific error code was selected |
(Empty) |
RESULTCODE="24007,30098" |
Specifies the error codes to match. Multiple error codes can be entered by delimiting each with a comma (i.e. 24007, 30098, 20074). This parameter is available only if the option selected in the If last step parameter is Failed with specific error code(s). |