← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #257761]: How to use logical operators in sikuli?

 

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

Shafiq Khan proposed the following answer:
Here's the revised code. Only the first line is changes as per my
previous reply.

if(exists("7655676576.png") or exists("7576577.png")):
    click(Pattern("8987989.png").targetOffset(11,0))
    sleep(2)
    if exists("1416238084264.png"):
        print "Ticket is working fine"
    else:
        print "Not working"

Sikuli uses the same logical operators as Python:
http://www.tutorialspoint.com/python/logical_operators_example.htm

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