← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #266772]: while not exists() or not exists(): does not seem to work

 

Question #266772 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266772

G Z posted a new comment:
Ok, I see. Thanks RaiMan!!

I was using the same but with "or".

So I thought that I have to use "and" if both have to be fulfilled and
"or" if one of them is enough!?

To me, this would mean that it will exit the loop only if image1 and image2 are not visible:
while not exists(image1, 0) and not exists(image2, 0):
    wait(1)
But it is acting like I would expect "or" to act and "or" acts like I would expect "and" to work.

Sorry if it just me thinking in a weird way today? :)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.