You could do<br>   $s: String() from cids<br>   eval( pids.contains( $s ) )<br>but this would fire for every element of cids occurring in pids.<br><br>If you&#39;d like to have a single activation if the intersection of both sets isn&#39;t the empty set, you&#39;ll have to write a function deciding just that, and call it:<br>
<br>   eval( intersectionNotEmpty( cids, pids ) )<br><br>-W<br><br><br><div class="gmail_quote">On 4 January 2012 09:11, gg <span dir="ltr">&lt;<a href="mailto:gagan.gautam@gmail.com">gagan.gautam@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left:1px solid rgb(204,204,204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex">I am trying to do something like:<br>
<br>
String(pids contains this) from cids<br>
<br>
Where pids and cids are both lists of strings. Bascially I want to check if<br>
list pids contains elements from list cids.<br>
<br>
--Regards<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/list-conatins-objects-from-another-list-tp3631295p3631295.html" target="_blank">http://drools.46999.n3.nabble.com/list-conatins-objects-from-another-list-tp3631295p3631295.html</a><br>

Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</font></span></blockquote></div><br>