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

RaiMan proposed the following answer:
shouldExitAndNotify = True
while True:
    SubRoutine1(a)
    if CheckIfConditionIsMet(a): break
    SubRoutine2(a)
    if CheckIfConditionIsMet(a): break
    SubRoutine3(a)
    if CheckIfConditionIsMet(a):break
    ...
    SubRoutine20(a)
    if CheckIfConditionIsMet(a): break
    shouldExitAndNotify = False
    break
if shouldExitAndNotify:
    ExitAndNotify(a)
else:
    print "got to the end "

-- 
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

Reply via email to