For Each loop issue

Hello all,

I am using a For Each loop and at the bottom of it I have an If activity which looks like this

If SPAN>200
Then move and rename file
Else - this is left blank

and I want it to continue to the next For Each loop but it appears to be going to the top of the current For Each loop. How do I get it to continue to the next For Each loop?

Thank you in advance

Hi,

If you want to exit the For Each loop and process next activity of For Each, use Break activity.
If you want to process next item of the For Each loop, use Continue activity.

Regards,

2 Likes

@Yoichi - Thank you! That worked!

1 Like

@Yoichi - I just realized that I want it to break for that iteration only. Is that possible? The For Each loop checks to be sure if the value is greater than 200. If it is it stops and renames the file. If it is at or below 200 then I want it to continue to the next For Each loop and when it is done, to go back to the first one. Is that possible?

Hi,

I suppose you can do it like the following, if my understanding right.

Regards,

1 Like

@Yoichi
Thank you, I’ll try that today

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