How to exit a if loop

how to exit a if loop

@Gaurav07

Use Break Activity inside the loop when you want to exit.

Thanks,
Suresh J

I don’t understand the question, you are checking the condition, so if it obeys the condition, it will go further, else it will do some other set of conditions. but exiting a IF loop? I’m confused

break is for for each only , I want to exit if loop

@Gaurav07

Could you explain what type of loop you are mentioning?

Thanks,
Suresh J

You can either use Break activity or have an if condition on the basis of which you can move to next item.

Thanks,
Prankur

3 Likes

@Gaurav07 Break activity enables you to stop the loop at a chosen point, and then continues with the next activity

Regards,
Ahtesham