<br> Remove your "eval" and use "or" instead of "||" for the OR CE.<br><br> Although, I feel that this is not what you want... what you want is simply:<br><br>when<br> Map( this['city'] not in ( "mumbai", "delhi" ) )
<br>then<br> //...<br>end<br> <br> []s<br> Edson<br><br><div><span class="gmail_quote">2007/9/12, Gaurav2007 <<a href="mailto:gaurav.a.joshi@capgemini.com">gaurav.a.joshi@capgemini.com</a>>:</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["city"] !="mumbai"))||(Map( this["city"] =="delhi"))))<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> Edson Tirelli
<br> Software Engineer - JBoss Rules Core Developer<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>