Switch Case using in Sikulix

Asked by Bharadwaj

Hi RaiMan,

How to Use/ define Switch () in Sikulix IDE for defining/working with Mutiple Values in different cases.

Please help me with a sample code or referene links update me .

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
masuo (masuo-ohara) said :
#1

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"

Can you help with this problem?

Provide an answer of your own, or ask Bharadwaj for more information if necessary.

To post a message you must log in.