SyntaxError: 'return' outside function"
Asked by
Janet
I want to realize the function that if find de picture "img", then return 0.
But when i excute this script,it occures the error as bellow:
if find(img):
return 0
[sikuli] Error message:
SyntaxError: ("'return' outside function", ('C:\\DOCUME~
Has anyone seen this error before and been able to solve it? I can't seem to find anything that leads to a solution.
That would be very gratfully for your help!
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Janet
- Solved:
- Last query:
- Last reply:
To post a message you must log in.