<br>&nbsp;&nbsp; Remove your &quot;eval&quot; and use &quot;or&quot; instead of &quot;||&quot; for the OR CE.<br><br>&nbsp;&nbsp; Although, I feel that this is not what you want... what you want is simply:<br><br>when<br>&nbsp;&nbsp;&nbsp; Map( this[&#39;city&#39;] not in ( &quot;mumbai&quot;, &quot;delhi&quot; ) )
<br>then<br>&nbsp;&nbsp;&nbsp; //...<br>end<br>&nbsp;<br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">2007/9/12, Gaurav2007 &lt;<a href="mailto:gaurav.a.joshi@capgemini.com">gaurav.a.joshi@capgemini.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi ALL,<br><br>I am using drool4.0.1 in my application i am able to use IN,OR,AND operator<br>but i am facing problem in using not operator.<br><br>my requirement of not operator is just like a not gate.<br><br>the way i am using it is :
<br><br>eval(not((Map( this[&quot;city&quot;] !=&quot;mumbai&quot;))||(Map( this[&quot;city&quot;] ==&quot;delhi&quot;))))<br><br><br>so can you please help me out to solve this problem:<br>should i use not operator or some thing else in drool.
<br><br>Thanks,<br><br><br>--<br>View this message in context: <a href="http://www.nabble.com/How-to-use-not-operator-in-drool.-tf4430240.html#a12638430">http://www.nabble.com/How-to-use-not-operator-in-drool.-tf4430240.html#a12638430
</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><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">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli
<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>