<br>&nbsp;&nbsp; The single binding for multiple OR&#39;ed patterns is a special case and it only supports infix OR:<br><br>
pensioner : (Person( sex == &quot;f&quot;, age &gt; 60 )&nbsp; or Person( sex == &quot;m&quot;, age &gt; 65 ) )<br>
<br>
<br>&nbsp;&nbsp;&nbsp; If the documentation is different, it requires fixing.<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><br><div class="gmail_quote">2008/5/13 Brett M. Bergquist &lt;<a href="mailto:brett@thebergquistfamily.com">brett@thebergquistfamily.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">If I use this syntax for an &quot;or&quot; with binding:<br>
<br>
pensioner : (or Person( sex == &quot;f&quot;, age &gt; 60 )  &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Person( sex == &quot;m&quot;, age &gt; 65 ) )<br>
<br>
I get a compile error. &nbsp;Is this syntax supported?<br>
<br>
I can successfully use this syntax:<br>
<br>
(or pensioner : Person( sex == &quot;f&quot;, age &gt; 60 )  &nbsp; pensioner : Person( sex == &quot;m&quot;, age &gt; 65 ) )<br>
<br>
which works okay but I was wondering if the documentation or implementation is incorrect.<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">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> Edson Tirelli<br> JBoss Drools Core Development<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>