Dynamic looping
Hello KNIMErs,
I have a problem that could be shown as follows:
*
Max number of elements: 4.
It is dynamic value >1 set in th initial ‘Variable Creator’ node.
*
Expected outcome: the following strings
1 out of 4
2 out of 4
3 out of 4
4 out of 4
1 out of 3
2 out of 3
3 out of 3
1 out of 2
2 out of 2
where separating lines are for better visibility only.
With combination of ‘Counting Loop Start’ and ‘Variable Condition Loop End’
I’m able to get the first sub-set of expected outcome.
However, I’m not sure how to decrease the max number of elements by 1 and run the loop again, and again. What would you suggest?
Thank you in advance!