sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04647
Re: [Question #168160]: Giving me an error in a if
Question #168160 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168160
Status: Open => Answered
RaiMan proposed the following answer:
That is always a problem here, since you do not see the real script.
Tip: when asking, it is helpful to have the error message from the IDE's
message area pasted here (only the part with the line number and the
error text).
In this case I can guess again:
if exists( ):
#WAITING
else:
you get an error telling something about bad indentation.
If something, that has to be indented, does not have some code yet, at least a "pass" is needed (a real statement, does nothing but having the correct indentation) a comment is simply ignored for this purpose.
so:
if exists( ):
pass #WAITING
else:
should help.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.