sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03158
Re: [Question #160813]: How to use if/elif/else correctly
Question #160813 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/160813
RaiMan proposed the following answer:
one more thing:
It does not make sense, to use find() in an if condition, because in the
standard it will stop the script with a FindFailed exception if the
image is not found.
use exists() instaed (see faq 1501)
faq 1568 might be helpful too.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.