AND operator not working

Hi ,

I am using “and” operator to check if two condtions are true in while loop or not but its not working as expected. Loop should stop once both condition are True, i.e. element exist is true and counter value is 4 . I have initialize counter value as 0 and it’s getting incremented with every run, process should gets excuted with each counter increment until it reaches 4.

However my process executes only once. attached is screen shot of my process. Need your help and suggestions.

Hi,
Try counter<=4 instead of counter=4

Hi,

Also try with

AndAlso

@RobDev
Lmclick = true and counter= 4

@poorna_nayak07

Not sure how I missed such a silly trick but your suggestion saved my day. Thank you:)

1 Like

Using all capital letters for the And operator (And Operator - Visual Basic | Microsoft Learn) will result in a syntax error.

Cheers:smiley:

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