← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #265063]: Manipulate the counter in for loop

 

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

RaiMan proposed the following answer:
or if the image should be checked in every loop turn:

repeat=7
intermediate = 4
imageExists = False
for i in range(repeat): # 0 as start is default
    DoSomeStuff()
    if not imageExists: 
        imageExists = exists(IMAGE)
    if i == intermediate and not imageExists:
        break

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