While

This activity works like a repetitive If activity. If the defined Boolean condition evaluates to true then task is performed, else it will terminate the task. This activity is similar to DoWhile, but in DoWhile task is performed before the defined Boolean condition.

Using While Activity

1.    In the Canvas Tools pane, click Flow Controls to expand the tool and view the associated activities.

2.    Drag the While activity and drop on to the Flowchart designer on the Canvas.

 

 

3.    In the Enter Expression here field, enter the while condition which you want to execute.

4.    In the While block, place the activity that must be performed based on the while condition.

The While activity with a default display name is created. The warning sign disappears once you provide the required inputs.

While Properties

The properties of a While activity are listed in the following table and can be edited in the Properties grid on the right pane.


Property Name

Usage

Misc

Condition

Define a Boolean condition in this field for a loop to perform the required task.

DisplayName

The name of the activity that is displayed in the flowchart. By default, the value is set as While. You can edit this value as per your need.

 Related Topics

Step-by-Step Guide to Use While