Ending a for each loop

I have a for each loop running picking multiple rows from excel. I need to end the loop after the first row itself without stopping to failing the script. During every run, the browser is open and followed up with activities. Which command or activity should I use so that script stops without showing any error.

Assign a integer variable counter and give its value as 1 then increment the counter variable by 1 .

Im not clear on this

@Aaditya What kind of error do you get ?

@Aaditya you can use the break activity to end the loop :slight_smile:

image

2 Likes

@efleurent Thanks. Its simple and works

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