How to exit Window Loop on a condition?

I have this table created:
image
I want to iterate that table row by row and check what is the value of field ‘column1’. If the value is 0 I want to finish the loop. So I built this workflow:
image
And here are respective nodes configuration:
image
image
image
Unfortunately, I am getting this error in Variable Condition Loop End: “Execute failed: No such variable “currentIteration” of type INTEGER”.

Can you please advise how to fix this or how to build this kind of a loop? My goal is to change value 5 to 0 in column 1, but if the next occurance is 0 itself I want to exit the loop.

Hi @Rafal_Xxx

Try this set up. Chunk size =1


afbeelding
gr. Hans

3 Likes

Excellent! Thank you so much :slight_smile:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.