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