← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #218418]: Linking script back again after else

 

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

Description changed to:
Example Script: [Roughly What i wrote]

If Exists("Picture A")
  Click("Me 1")
  Click("Me 2")

Else
   Click("Him1")
   Click("Him 2")

Now Here comes my problem....
Is there anyway to link back to my script again after the else??

[What i actually wanted]

If Exists("Picture A")
  BACK TO HERE <--------------
  Click("Me 1")                             |
  Click("Me 2")                             |
                                                        |
Else                                                |
   Click("Him1")                            |
   Click("Him 2")                           |
                                                        |
 CONTINUE BACK TO EXISTS >-|


More Examples:

In CMD language, 
I wrote this:
If Exists("Picture A")
  :Blah
  Click("Me 1")                             
  Click("Me 2")                             
                                                        
Else                                                
   Click("Him1")                            
   Click("Him 2") 
   :Blah [Linking Blah to the top Blah]


Please help me thank you!

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