can you try with<div>$valueList not contains $value</div><div>but internally I suppose that it will work in the same way that the eval.</div><div><br></div><div><br><div class="gmail_quote">On Mon, Nov 1, 2010 at 11:55 AM, Tina Vießmann <span dir="ltr">&lt;<a href="mailto:tviessmann@stud.hs-bremen.de">tviessmann@stud.hs-bremen.de</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Is it possible to write the following conditions without using eval?<br>
<br>
<br>
         $object : MyObject ( $valueList : valueList )  // of type List<br>
         $ value : Value ( // other restrictions<br>
&amp;&amp; eval( !($valueList.contains($value)) ) )<br>
<br>
<br>
Thank you :)<br>
Tina<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>
</blockquote></div><br><br clear="all"><br>-- <br> - CTO @ <a href="http://www.plugtree.com">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com">http://salaboy.wordpress.com</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar">http://www.jbug.com.ar</a><br>
 <br> - Salatino &quot;Salaboy&quot; Mauricio -<br>
</div>