← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #240213]: How to know a specific image found on a if exists with an array

 

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

    Status: Open => Answered

akbar proposed the following answer:
I dont know what existsAny returns whether a boolean or a match.
Whatever it returns you can store that in a variable and then use it
accordingly.

varA = existsAny(rHa,ha)
varB = existsAny(rHb,ha)

if(varA or varB){

if(varA) print something
if(varB) print something

}

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