← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #181852]: if statements inside for loop

 

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

Calle Rundgren proposed the following answer:
You need to indent the code inside the if-statement.

Example:

if exists("img1.png")
    click("img1.png")

This is the proper way to use if-statements in python. Everything who is
indented inside the statement will be included.

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