← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #168160]: Giving me an error in a if

 

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

    Status: Needs information => Open

Clonex gave more information on the question:
Thanks helped me alot.
I'm getting an error on line 10 (Take a look at the image I've posted)

I've updated the code from the help you gave me:
while true:
	im = find( )
	if exists(getLastMatch()):
		click(im.getCenter().below(35))
	else:
		if exists( ):
			#WAITING
		else:
			if exists( ):
				click( )
			else:
				exit(1)


It's giving me the error on line 8, at:
		if exists( ):
			#WAITING
		else: <-- ERROR

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