← Back to team overview

sikuli-driver team mailing list archive

[Question #154447]: How to end a while True inside a function

 

New question #154447 on Sikuli:
https://answers.launchpad.net/sikuli/+question/154447

hi,

Im using the following code:

def test():
	i = 0
	while True:
		if i == 3:
			break
		else:
			i +=1
	print "done"	

this function isn´t printing "done" when finished. How do I stop the while execution and continue my function?

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