← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #175717]: Need help! with find or skip

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Ok, you have to get used to some basic Python language rules: trailing
colons and indentation.

... and you did not type what I "told" you. The error massage at least
gave you a hint: missing colon!

statements beginning with if/else/elif/while/for and some others, that
are starting a block, have to have a trailing colon.

BTW:
you seem to miss the logic in my snippet, since the indentation of the else: has to be on the level of the first if, not the second.
Your version does not make any sense. 
Look back at my snippet and take care for the right indents (to adjust them use tab and shift-tab)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.