sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35795
Re: [Question #275951]: Adding logic via IF, ELSE statement in Sikuli Java API using the exist method
Question #275951 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/275951
jm.trappier@xxxxxxxxx proposed the following answer:
Dunno how to edit my own post, I forgot the ";", please read this :
if(s.exists(imagePath) != null){s.rightClick(imagePath);} instead (true
for the other line as well, of course).
Note that in this case, you could just write :
if(s.exists(imagePath) != null) s.rightClick(imagePath);
But all is a question of style preference.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.