sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #22425
Re: [Question #239537]: How to simulate "GoTo" - end subroutine if condition met?
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.