else if
Hi,
I tried now for some time to build a python else if structure like this:
-------
if exists(img01):
...
elif exists(img02):
...
elif exists(img03):
-------
This is common python syntax but it does not work. If I structure it like this:
-------
if exists(img01):
...
if exists(img02):
...
if exists(img03):
-------
Not all cases are triggered when the images appear. I only want one "if" and "else ifs" if possible. Only "else" is not specific enough because I want a restraint from the existing picture. Anyone know how to build this?
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Llewelyn Mc Carthy for more information if necessary.