← Back to team overview

sikuli-driver team mailing list archive

[Question #257034]: Returns and continuation in the script

 

New question #257034 on Sikuli:
https://answers.launchpad.net/sikuli/+question/257034

Please, tell me how to make a script to work from the start, if the value of the variable is equal to 3. 

Example:

script start point

m =  random.randint(1, 3)
if m == 1:
    type("some text"+Key.ENTER)
if m == 2:
    continue script
if m == 3:
    return to script start point and new initialization variable m

I did not get to use the break or Continuе. How to get back to the beginning of the script or to a specific line or restart script?

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