Control Flow - While

While

When to use While

This activity helps you execute a sequence when a specified condition is satisfied.

Figure 1

Activity Name

Picture

While

a                                            

Technical Reference

Figure 1.1

1 

S.no

Description

1

Specify the condition to validate

2

Display Name property shows the action that the activity performs in the workflow.

t    Condition should be specified as Boolean.

Scenario

Assume you want to close an active application when the count of the iteration is 5.

Illustration

a Activity: The While activity executes the sequence of activities in the body once the condition specified is evaluated to be true.

 Drag a While activity and specify the condition in the properties section.

  • Define a variable count that holds the value of the iterations performed which can be incremented using an assign activity.
  • Drag a close application activity and select the application that needs to be closed if the validated condition is evaluated as true (Refer figure 1.3)

Figure 1.2

1

Figure 1.3

1.

 

Release date
Version
v4.0.0