iRobo.Activity.Do While

DoWhile activity helps to execute a repeated process same as While Activity except that the Body is executed at least once.

It is used either to go through an array of elements, or execute a specific activity multiple times. 


     Note: 

         The Body of the loop is executed at least once, then the condition is evaluated before next execution. 

         Thus if the given condition is False, the body is executed only once and then exits the loop.  


                                                                                       

Properties

Misc

  • Condition -   Get Condition value in DoWhile Activity. 
  • DisplayName -  Activity header name.


                                                                                                       

Example on Using DoWhile Activity


To better understand the While Activity, let's build an automated process that counts a Counter value with a condition less than 5, and displays its value in a MessageBox with the counted number.


  1. Open iRobo Studio, and then open a new Workflow.
  2. Drag DoWhile Activity to the Sequence.
  3. Create Counter Variable in Variable Table with Integer Data Type.
  4. Specify Scope to Counter Variable in Variable Table as "Sequence".
  5. In DoWhile Condition, add Counter <5.
  6. Drag Assign Activity to the DoWhile Sequence.
  7. Assign Counter Variable in Assign Activity, Counter = Counter +1 ,as shown in the image below.

   

  1. Drag MessageBox Activity to the DoWhile Sequence as shown in the image below.

   

  1. Click Save button from iRobo Studio Menu to save Workflow.
  2. Click Play button to start the automated process.





Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?