← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #217695]: schleife in schleife

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
dafür gibt es das break: bricht die aktuelle Schleife ab un macht beim
nächsten Statement außerhalb weiter.

In deinem Fall gehts dann ganz vorne los.

while(True):
    click("1356619370543.png")
    while(True):
        click("1356619407766.png")
        bla = exists("NeueApps.png")
        if bla:
            click("1356619478709.png")
            break

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