While

Executes a contained activity while a condition evaluates to true.

While Designer

Designer Properties#

Condition The condition checked at the beginning of the loop to determine whether the loop is executed again. Body The child activity to be executed with every iteration.

Properties#

while properties

General Properties#

See General Properties.

Misc#

  1. Display Name See Misc.
  2. Condition The condition checked at the beginning of the loop to determine whether the loop is executed again.

Out Error#

See Out Error.

Example#

While

In this example, we log in the output window the numbers from 0 to 4. The difference between while and dowhile is that the condition is executed at the beginning for while. If I had used the same condition for while like I did for dowhile(index > 0 AndAlso index < 5), the body of the while will not execute(No values would be printed to the output panel).