Question #153585 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/153585
Status: Open => Answered
RaiMan proposed the following answer:
Since Python does not have a switch statement, Sikuli does not have
either --- we talk Python in Sikuli scripts.
you have to use:
if cond1:
pass
elif cond2:
pass
elif cond3:
pass
# more elif's as needed
elif condN:
pass
else: # if none of the above is True
pass
pass in Python means "do nothing", but maintains the correct
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