← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #615651]: sikuli if exists or if not exists

 

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

Milteven posted a new comment:
I'm a python/sikuli "newbie" but here is what I think of a solution:

Just put your code inside a if/else statement,so:

while True:
[YOUR CODE]

#if existis continue to statement
#if not exists, it will fall into a else

else:
click("img")

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.