Question #202307 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/202307
Status: Open => Answered
RaiMan proposed the following answer:
def myFunction():
print ("I may fail")
if (some_condition):
print ("success")
return True
else:
print ("fail")
return False
if myFunction():
# will bes skipped if failed (myFunction returns False)
# success do something
# start of next step
see faq 1800 on indentation
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp