Workflow: Loop on a Condition
This workflow implements an example of a loop on a condition using the Variable Condition Loop End node. This means, the loop stops only when a certain condition is met which is defined in the Variable Condition Loop End node.
Let's imagine the following game:
We think of a number an write it into the Table Creator node. Then we start the loop with a Generic Loop Start node. In the loop, we prompt the user to guess the number we have thought of. They can write their guess into the String Widget node. If the answer is wrong, the user is prompted again until the answer is right OR he has already tried 3 times. The condition is built by the Variable Expression node and represented by the flow variable "success" (0 if guess is wrong, 1 if guess is right OR when the number of iteration is 3). The Variable Condition Loop End node then ends the loop under the condition when "success" equals the value 1.
This workflow should be executed as a Data App on the KNIME Hub since there the Widget node makes the workflow stop to collect the user guess at each iteration.