Element Exists with If Statements

Hi

Can someone tell me what’s wrong with this?

The Element Exists Output is set to variable “NextPage”.
The If condition did not find the Element, but it still went ahead and continued the bot. I need it to exist the current loop and go try the next value in my ForEachRow function.

Does anyone know how to exist the loop and try the next value?

*exit. sorry lol

Can you add a break point on the If statement and check what is the value of “NextPage” variable?
Also, default the value of “NextPage” to False.

1 Like

Good catch! :smile:

Hi @sumitd ,

You were right, I just needed to toggle it to False, instead of True and the bot worked. I would’ve never guessed.

Appreciate your help, thanks so much!

1 Like

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