<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
The 'in' operator is just sugar for == 'stilton' || == 'brie' but we
felt it improved the declarative nature of the language sufficiently to
warrant the sugar.<br>
<br>
Mark<br>
Ronald R. DiFrango wrote:
<blockquote
 cite="mid:eb33f140707081456y5b1e2567gf3a86f67a1f2eee7@mail.gmail.com"
 type="cite">Nice; an in operator just like SQL :-)<br>
  <br>
  <div><span class="gmail_quote">On 7/7/07, <b class="gmail_sendername">Mark
Proctor</b> &lt;<a moz-do-not-send="true"
 href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div bgcolor="#ffffff" text="#000000">Sorry it's now &amp;&amp; and
||<br>
You can also us the 'in' operator<br>
    <tt>Cheese( type in ( 'stilton', 'brie' )) <br>
Cheese( type not in ( 'stilton', 'brie' )) <br>
Cheese( type memberOf $myCheeseTypeList ) <br>
Cheese( type not memberOf $myCheeseTypeList ) <br>
    <br>
Mark<br>
    </tt><br>
Ronald R. DiFrango wrote:
    <blockquote type="cite">
      <div><span class="e" id="q_113a1ad8ae2e2f1e_1">Answered my own
question:<br>
      <br>
MyObject (status == StatusConstants.MATCHED | ==
StatusConstants.APPROVAL)<br>
      <br>
      <div><span class="gmail_quote">On 7/7/07, <b
 class="gmail_sendername">Ronald
R. DiFrango</b> &lt;<a moz-do-not-send="true"
 href="mailto:ron.difrango@gmail.com" target="_blank"
 onclick="return top.js.OpenExtLink(window,event,this)">
ron.difrango@gmail.com</a>&gt; wrote:</span>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">All,<br>
        <br>
If I remember correctly, in the 4.x version of Drools you were adding
an or type syntax where you could compare a value against multiple
values.&nbsp; What is the new syntax for it? <br>
        <br>
I am looking to do something logically like: <br>
        <br>
MyObject (status in ("Open" or "Matched")<br>
        <br>
Ron<br>
      </blockquote>
      </div>
      <br>
      </span></div>
      <pre><hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rules-users@lists.jboss.org</a>
<a moz-do-not-send="true"
 href="https://lists.jboss.org/mailman/listinfo/rules-users"
 target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">https://lists.jboss.org/mailman/listinfo/rules-users
</a>
  </pre>
    </blockquote>
    <br>
    </div>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
  </pre>
</blockquote>
<br>
</body>
</html>