<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:x = 
"urn:schemas-microsoft-com:office:excel" xmlns:st1 = 
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name="City" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><o:SmartTagType 
name="place" 
namespaceuri="urn:schemas-microsoft-com:office:smarttags"></o:SmartTagType><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
        FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.EmailStyle18 {
        COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0in
}
UL {
        MARGIN-BOTTOM: 0in
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=blue link=blue>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2>What dialect do your rules use?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2>You could also simplify&nbsp;the logic using DeMorgans 
Theorem (which might be troublesome to accomplish 
programmatically)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2>I don't know whether your example is flawed as the brackets 
don't match, but assuming you mean something like this:-</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial size=2>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: black"><SPAN class=298115207-13092007>(</SPAN>NOT (G13.1 IN 
("1","2","3")<SPAN class=298115207-13092007> </SPAN>OR (G250.8 = Y))<SPAN 
class=298115207-13092007>)</SPAN></SPAN></SPAN></P>
<P class=MsoNormal><FONT face=Arial color=#0000ff size=2><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"></SPAN></SPAN></FONT>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"><o:p><SPAN class=298115207-13092007><FONT color=#0000ff>You 
can re-write this as</FONT></SPAN></o:p></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"><o:p><SPAN class=298115207-13092007><FONT 
color=#0000ff></FONT></SPAN></o:p></SPAN></SPAN>&nbsp;</P><SPAN 
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN style="COLOR: navy"><o:p><SPAN 
class=298115207-13092007>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: black">(G13.1&nbsp;<SPAN class=298115207-13092007>NOT </SPAN>IN 
("1","2","3")<SPAN class=298115207-13092007> AND</SPAN>&nbsp;G250.8&nbsp;<SPAN 
class=298115207-13092007>!</SPAN>= Y</SPAN><SPAN style="COLOR: navy"><FONT 
color=#000000>)</FONT></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"><FONT color=#0000ff></FONT></SPAN></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"><SPAN class=298115207-13092007><FONT color=#0000ff>With kind 
regards,</FONT></SPAN></SPAN></SPAN></P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"><SPAN class=298115207-13092007><FONT 
color=#0000ff></FONT></SPAN></SPAN></SPAN>&nbsp;</P>
<P class=MsoNormal><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN 
style="COLOR: navy"><SPAN class=298115207-13092007><FONT 
color=#0000ff>Mike</FONT></SPAN></SPAN></SPAN></P></SPAN></o:p></SPAN></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=298115207-13092007><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV><FONT face=Arial 
size=2></FONT><FONT face=Arial size=2></FONT><FONT face=Arial 
size=2></FONT><FONT face=Arial color=#0000ff size=2></FONT><FONT face=Arial 
color=#0000ff size=2></FONT><BR>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>JOSHI, 
  GAURAV<BR><B>Sent:</B> 13 September 2007 08:20<BR><B>To:</B> Rules Users 
  List<BR><B>Subject:</B> RE: [rules-users] How to use not operator in 
  drool.<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV class=Section1>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thank&#8217;s for your 
  sugession of using &#8220;not in&#8221; instead of &#8220;not&#8221; but my problem is that &#8220;not&#8221; can 
  also come without &#8220;in&#8221;.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Actually I am making 
  a generator of rule file from expression like<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;(</SPAN></FONT><FONT 
  face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">(NOT (ENDS 
  WITH (G10.2, ",")))<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">&nbsp;<FONT color=black><SPAN 
  style="COLOR: black">((NOT (G13.1 IN ("1","2","3"))) OR (G250.8 = 
  Y))</SPAN></FONT><FONT color=navy><SPAN 
  style="COLOR: navy">)<o:p></o:p></SPAN></FONT></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Where G13.2, G250.8, 
  G10.2 are variables coming from a map inserted in working 
  memory.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I am accessing these 
  variables from map.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">My rules are as 
  follows<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">This rule is working 
  fine.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">rule 
  "Editable_G10.3"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">when<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><B><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;((Map( 
  this["G10.3"] !=8))||(Map( this["G10.2"] 
  ==19)))<o:p></o:p></SPAN></FONT></B></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">then<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">System.out.println("comming 
  here-----------------------------------------------------&gt;");<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">End<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><B><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">This 
  is not working<o:p></o:p></SPAN></FONT></B></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">rule 
  "Mandatory_G10.3"<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">when<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><B><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;(not((Map( 
  this["G10.3"] !=8))||(Map( this["G10.2"] ==19)))) 
  <o:p></o:p></SPAN></FONT></B></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Then<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">System.out.println("comming 
  here-----------------------------------------------------&gt;");<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">End<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">In also tried following 
  approaches:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal 
  style="MARGIN-LEFT: 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"><![if !supportLists]><FONT 
  face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt"><SPAN 
  style="mso-list: Ignore">1)<FONT face="Times New Roman" size=1><SPAN 
  style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  </SPAN></FONT></SPAN></SPAN></FONT><![endif]><B><FONT face=Arial color=navy 
  size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">eval(not((Map( 
  this["G10.3"] !=8))||(Map( this["G10.2"] ==19)))) 
  <o:p></o:p></SPAN></FONT></B></P>
  <P class=MsoNormal><B><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></B></P>
  <P class=MsoNormal style="TEXT-INDENT: 0.25in"><B><FONT face=Arial color=navy 
  size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">2) 
  eval(!((Map( this["G10.3"] !=8))||(Map( this["G10.2"] ==19)))) 
  <o:p></o:p></SPAN></FONT></B></P>
  <P class=MsoNormal style="MARGIN-LEFT: 0.25in"><B><FONT face=Arial color=navy 
  size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></B></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt">But in both cases it is giving same 
  error:<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" color=red size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'">org.drools.rule.InvalidRulePackage: 
  Rule Compilation error : [Rule name=ValidationRuleExp_G10.3, agendaGroup=MAIN, 
  salience=0, no-loop=false]</SPAN></FONT><FONT face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" color=red size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  com/telekurs/nva/mde/fe/ak/validation/Rule_ValidationRuleExp_G10_3_0.java 
  (11:495) : Cannot use this in a static context </SPAN></FONT><FONT 
  face="Courier New" size=2><SPAN 
  style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face="Courier New" color=red size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: red; FONT-FAMILY: 'Courier New'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  com/telekurs/nva/mde/fe/ak/validation/Rule_ValidationRuleExp_G10_3_0.java 
  (11:500) : Type mismatch: cannot convert from String to 
  int<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I am trying to find 
  out some general concept so that I can change just achieve the functionality 
  of not.<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks<o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Gaurav 
  <o:p></o:p></SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <DIV>
  <DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><FONT 
  face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">
  <HR tabIndex=-1 align=center width="100%" SIZE=2>
  </SPAN></FONT></DIV>
  <P class=MsoNormal><B><FONT face=Tahoma size=2><SPAN 
  style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">From:</SPAN></FONT></B><FONT 
  face=Tahoma size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma"> 
  rules-users-bounces@lists.jboss.org 
  [mailto:rules-users-bounces@lists.jboss.org] <B><SPAN 
  style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Edson Tirelli<BR><B><SPAN 
  style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wednesday, September 12, 2007 10:20 
  PM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> Rules Users 
  List<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: 
  [rules-users] How to use not operator in 
  drool.</SPAN></FONT><o:p></o:p></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt"><BR>&nbsp;&nbsp; Remove your "eval" and 
  use "or" instead of "||" 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['city'] not in ( "mumbai", 
  "<st1:City w:st="on"><st1:place w:st="on">delhi</st1:place></st1:City>" ) ) 
  <BR>then<BR>&nbsp;&nbsp;&nbsp; //...<BR>end<BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; 
  []s<BR>&nbsp;&nbsp;&nbsp; Edson<o:p></o:p></SPAN></FONT></P>
  <DIV>
  <P class=MsoNormal><SPAN class=gmailquote><FONT face="Times New Roman" 
  size=3><SPAN style="FONT-SIZE: 12pt">2007/9/12, Gaurav2007 &lt;<A 
  href="mailto:gaurav.a.joshi@capgemini.com">gaurav.a.joshi@capgemini.com</A>&gt;:</SPAN></FONT></SPAN><o:p></o:p></P>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><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"] =="<st1:City w:st="on"><st1:place 
  w:st="on">delhi</st1:place></st1:City>"))))<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><o:p></o:p></SPAN></FONT></P></DIV>
  <P class=MsoNormal><FONT face="Times New Roman" size=3><SPAN 
  style="FONT-SIZE: 12pt"><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;<st1:City 
  w:st="on"><st1:place w:st="on">Mobile</st1:place></st1:City>: +55 11 
  9287-5646<BR>&nbsp;&nbsp;JBoss, a division of Red Hat @ <A 
  href="http://www.jboss.com">www.jboss.com</A> 
  <o:p></o:p></SPAN></FONT></P></DIV>
  <TABLE>
    <TBODY>
    <TR>
      <TD bgColor=#ffffff><FONT color=#000000>This message contains 
        information that may be privileged or confidential and is the property 
        of the Capgemini Group. It is intended only for the person to whom it is 
        addressed. If you are not the intended recipient, you are not authorized 
        to read, print, retain, copy, disseminate, distribute, or use this 
        message or any part thereof. If you receive this message in error, 
        please notify the sender immediately and delete all copies of this 
        message.<BR><BR></FONT></TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>