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.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to