← Back to team overview

sikuli-driver team mailing list archive

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

 

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

Hi Everyone,

I am trying to do the following that is working when I separate the commands but this way it will keep printing "waiting for pattern", even thought in the second exists() the image is existing.

while not exists(AN IMAGE THAT DOESN'T EXIST,0) or not exists(AN IMAGE THAT EXISTS,0):
    wait(0.01)
    print "waiting for pattern"

If I only do this, than it finds the image as expected:

while not exists(AN IMAGE THAT EXISTS,0):
    wait(0.01)
    print "waiting for pattern"

This is the python equivalent of the top one, wich is working in python, after that is greater than 5.
this = 5
that = 1
while not this>3 or not that>5:
    print this, that
    that = that + 1

What am I missing here, or is it a bug? :)

Thanks,
George


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