Loop Expression Action—Setting Properties

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.

To set Loop Expression properties

  1. 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.

  2. Select Loop while the expression is true or Loop until the expression is true.

  3. In the Expression box, type the expression, or click the Insert Expression/Variable button and use the Expression Builder to create it.

  4. To set the Description tab properties, refer to Description Tab Options.

  5. To set the Error Causes and On Error tab properties, refer to Step Error Handling.

  6. When finished, click OK to save settings and close the properties dialog window.

To auto-indent after all steps are added

  1. 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.

  2. Click the Format button .

See Also

About Actions

Adding Task Steps

Loop Expression Action