To use the While condition, follow the steps given below.
To create a workbook using the While loop, follow the steps given below.
Connect the algorithm node to the End node.
| The algorithms should always be inserted between the Condition and the End node. |
The algorithm connected to While is executed until the While condition is true.
The While Condition Properties show Task Name fields and Clause fields associated with it.
The table given below describes the functions present on the While condition.
Field Name | Description | Remarks | |
---|---|---|---|
Task Name | It is the name of the condition selected (While). | — | |
While Tasks | It lets you select the successor algorithms which are executed while the condition evaluates to True. | — | |
Clause | It lets you create a complex condition. | You can add more than one clause. | |
Clause | Parameter | It lets you select the variable for the condition. |
|
Condition | It lets you select the mathematical operator for your variable. | — | |
Value | It lets you enter the required values to test or execute the successor algorithms connected to the While condition. | This value is compared with the Current Value of the added variable to evaluate the expression. |
Notes: |
|
The figure given below is an example of While Properties. The selected condition is While, and the successor algorithm selected to execute the While condition is Decision Tree.
In the example above, the newly added variable is Test1 with the Current Value as 10. The While condition is Test1 <12. In this example, the Decision Tree algorithm is executed twice until the current value of Test1 is less than 12. In the third iteration, the current value becomes 12, the while condition fails at this point, and the execution stops.