← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204805]: beginner how can i say sikuli to go back to lne 1 ?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You either rap the whole stuff into another loop

while True: #endless
    hanf = exists(...)
    while hanf:

or you redesign your existing loop:

hanf = exists(...)
while hanf:
    click(...)
    hanf = exists(...)
    # many other statements
    hanf = exists(...) # as last statement in the loop

More ideas on looping: faq 1437

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