The If Last Step action is used to set up conditional steps that will or will not be performed depending on the success or failure of the preceding step.
When you create an If Last Step step, an End If step is created automatically. Place the steps to be preformed if the condition is met between the If Last Step step and the End If step. The steps within the block should be indented for visual clarity.
From the Task Builder Available Actions pane, open the Flow folder and double-click the If Last Step action or drag it into the Steps pane.
In the If last step box, select Succeeded, Failed, or Failed with specified error codes.
For Failed with specified error codes, enter the error codes in the Error codes box. Separate multiple error codes with commas.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
In the Task Builder Steps pane, hold down SHIFT and click the first and last steps in the block so that the complete block of steps is selected.
Click the Format button .
Adding Task Steps
End If Action-Properties