← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #143114]: goto or continue execution from other line

 

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

    Status: Answered => Open

hemanth is still having a problem:
Yes, it is rather confusing me to think in "if not" rather than "if"!

But my real problem is

if not exists(something,3):
    # statement block 1

else:
   # statement block 2
   !# statement block 3!


- if something does exist,block 1 will be skipped
- if something does not exist,block 1 will be processed
But after processing block 1, i want it to continue to block 3 in the "else" B'cause i need to reuse my code!

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