Share via


DoWhile Activity Designer

The DoWhile activity executes the activity contained in its Body at least once, until a specified condition evaluates to false. If you need the activity contained in a loop body to be executed zero or more times, use the While activity instead.

DoWhile Properties in the Workflow Designer

The following table shows the most useful DoWhile activity properties and describes how to use them in the designer.

Property Name Required Usage

Body

False

The activity to execute while the condition is true. To add the Body activity, drop an activity from the toolbox into the Body box on the DoWhile activity designer with hint text “Drop Activity Here”.

Condition

True

The condition to evaluate after each iteration of the loop. To set the Condition, type a Visual Basic expression in the Condition box on the DoWhile activity designer or in the property grid.

See Also

Concepts

While Activity Designer

Other Resources

Control Flow Activity Designers