← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #678305]: all([]) operator not working

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
the builtin method all() is overwritten by SikuliX and defines the
Region containing all screens in a multi-monitor environment.

Sorry for the inconvenience, did not notice this.

This will only be fixed in 1.1.4 the next days.

workaround:

a = 1
b = 1
if __builtin__.all([a == 1, b == 1]):
    print ("yes")
else:
    print("no")

__builtin__ is auto-imported at script run.

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