← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #615651]: sikuli if exists or if not exists

 

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

Milteven posted a new comment:
Probably it is not working because there is no "if" before the else
statemente, try to add it inside the while and use a variable to pass
the if, like:

while True:
   variable_one = True
   if variable = True
      YOUR CODE
    else:
      click("1491686890829.png")

The goal is to while your condition is true, it will proceed to the if,
that will be true just if variable_one = True, if it is true, your code
will be executed, if not, it will fall into the else, and will click on
the img.

PS: I do not tested the code.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.