<br> The single binding for multiple OR'ed patterns is a special case and it only supports infix OR:<br><br>
pensioner : (Person( sex == "f", age > 60 ) or Person( sex == "m", age > 65 ) )<br>
<br>
<br> If the documentation is different, it requires fixing.<br><br> []s<br> Edson<br><br><br><div class="gmail_quote">2008/5/13 Brett M. Bergquist <<a href="mailto:brett@thebergquistfamily.com">brett@thebergquistfamily.com</a>>:<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 "or" with binding:<br>
<br>
pensioner : (or Person( sex == "f", age > 60 ) Person( sex == "m", age > 65 ) )<br>
<br>
I get a compile error. Is this syntax supported?<br>
<br>
I can successfully use this syntax:<br>
<br>
(or pensioner : Person( sex == "f", age > 60 ) pensioner : Person( sex == "m", age > 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>