← Back to team overview

sikuli-driver team mailing list archive

[Question #256304]: If statement problem

 

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

new to sikuli. Im trying to use an if statement to select a different options in a list.
so select 1st option first then select 2nd option the 2nd time around select 1st option 3rd time round. this is what i got so far. Is there a  better way to do it.

for n in range(3):
    count = 0
    if  count : 0
    click("image1.png")
    count = count + 1
    click("imageOK.png")
else :
    click("image2.png")
    count = count - 1
click("imageOK.png")
    
    

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