Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9190

Re: UDF for Checking 2 values and building context

$
0
0

Hi CH

 

Try out the logic below. Your UDF should be of type "Queue".

for (int i = 0; i < a.length; i++) {  boolean found = false;  for (int j = 0; j < b.length; j++) {    if (a[i].equals(b[j])) {      result.addValue(a[i]);      found = true;      break;    }  }  if(!found) {    result.addContextChange();  }
}

 

Rgds

Eng Swee


Viewing all articles
Browse latest Browse all 9190

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>