← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #340068]: Switch Case using in Sikulix

 

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

    Status: Open => Answered

masuo proposed the following answer:
Instead of "switch", "if ... elif ..." is used in  Python code.

[example:]
if x == 1:
    print "1"
elif x == 2:
    print "2"
elif x in {3,4}:
    print "3 or 4"
else:
    print "else"

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.