Break or Continue for while loops

#1

Referring to thread Exit loop when condition is met

Break and Continue activities are only for For Each loops, and I don’t see any custom code that works with the same functionality.

How do I break or continue midway through a while loop?

#2

@DEATHFISH,

You can use Invoke code activity for this.

Cheers,
Pankaj

#3

Any sample screenshots/code/attachments? Thanks

#4

please write a code in invoke activity and run it

BreakWithWhile

Cheers,
Pankaj

1 Like
#5

Hi @DEATHFISH,

You just need to add a flag in loop and add this flag in while condition.

Thanks,
Aisling