Stop my loop if the column sum is greater than 50% of my flow variable
Dear KNIMErs,
I am trying to mimic what my friends in IT might call a “while loop”.
Here’s my situation: I have a total value of 120. I want to loop through my table (and execute the loop body) as long as the current value is not greater than the total value of 120.
Played around with the Variable Condition Loop End Node and collecting the “currentValue” in a flow variable.
I thought I could assign this currentValue flow variable to the value field in the aforementioned loop end node, but the value - of course - is an integer while the flow variable settings for “value” only accept strings. This also surprised me a little bit, as the conditions are set as “greater than”, “equal to” etc which - from my point of view - would indicate a numerical value.
I have created an example workflow here:
Thank you for your help.