The Loop Expression action loops while or until a specified expression is true. It is used to repeat a step or series of steps until a particular condition is met.
When you create a Loop Expression step, an End Loop step is created automatically. Place the steps to be performed between the Loop Expression step and the End Loop step. The steps within the block should be indented for visual clarity.
From the Task Builder Available Actions pane, open the Loop folder and double-click the Loop Expression action or drag it into the Steps pane.
Select Loop while the expression is true or Loop until the expression is true.
In the Expression box, type the expression, or click the Insert Expression/Variable button and use the Expression Builder to create it.
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
Loop Expression Action