while not exists() or not exists(): does not seem to work
Asked by
GZ
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
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- GZ
- Solved:
- Last query:
- Last reply:
To post a message you must log in.