Is there any way to exit the for each loop before the loop ends

Is there any way to exit the for each loop before the loop ends

  

Hi All,


Is there any way to exit the "for each" loop if I met some condition? 

something like break; on c#.net


I try to do something like this, So when the trRelatedEvents.List.Current.IsLinked = true I should be able to exit the loop right away.

But this gives me anerror "Ambiguous paths to End..."


Thanks,

Dan


Hi Dan,

Try using separate End node:

Awesome! Yes it's working.

Thanks!!