← 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

    Status: Answered => Open

G Z is still having a problem:
With the python exampl I was trying to demonstrate what it would go
through to my mind in SikuliX.

this = 5 # this is for the image that will never exist
that = 1 # this is for the image that is not yet on screen but I always add 1 to it and when it reaches 5 it "appears on screen"
while not this>3 or not that>5:
    print this, that
    that = that + 1

Basically there are two possible images that can show up. 
It should wait until either of them shows up, and when it does it should get past the loop. 

What would be the best way to do that?

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