if find or if exists SyntaxError
Asked by
charliedaps
Hello everyone,
I can not find the solution for image search with an IF
The goal is that the action continues if the image is found and the action closes the window if the image is not found.
So I have
if find (image):
rightclick(image)
click(image2)
.......
else:
type(Key.F4, KEY_CTRL)
And here is the error indicated by sikulixide
SuntaxError ("mismatched imput "rightclick expecting indent",)
Error on the line rightclick(image)
I try with if exists(image): (same error)
Thank you in advance for your help.
Have a good day
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 charliedaps for more information if necessary.
To post a message you must log in.