Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Solution:

Step1: Create a function named: IsInPageListIgnoreCase


Parameters names::
lookFor:String
lookAt: String
lookIn: ClipboardProperty

Out Put type:


boolean value(true or false)

Step2: under the Java Tab of the Function:IsInPageListIgnoreCase

Copy below code:


boolean retValue = false;
Iterator it = lookIn.iterator();
while (it.hasNext()) {
ClipboardProperty next = (ClipboardProperty) it.next();
ClipboardPage nextPage = next.getPageValue();
ClipboardProperty prop = nextPage.getIfPresent(lookAt);
if (prop != null)
{
if
(prop.getStringValue().equalsIgnoreCase(lookFor)) {
retValue = true;
break;
}
}
}
return retValue;

Step3: Save and Generate the Function and now we can use this function by passing
the Paramters it will retun true or false

You might also like