This is correct syntax, although the parens are redundant in this particular situation.<br><br>Technically, this is called a &quot;multi-restriction&quot;. Expand it by inserting the field (answer.ID) in front of each relational operator. It&#39;s inherited from COBOL :-)<br>
<br>-W<br><br><br><br><div class="gmail_quote">On 25 March 2011 16:59, ljnelson <span dir="ltr">&lt;<a href="mailto:ljnelson@gmail.com">ljnelson@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
In case anyone is following along (silent list!), I finally ran the debugger<br>
on JBRULES-2932 and found a suspicious bit of syntax that was accepted by<br>
Drools 5.1.1 but which causes Drools 5.2.0-SNAPSHOT to barf.<br>
<br>
<a href="https://issues.jboss.org/browse/JBRULES-2932?focusedCommentId=12591856#comment-12591856" target="_blank">https://issues.jboss.org/browse/JBRULES-2932?focusedCommentId=12591856#comment-12591856</a><br>
<br>
At issue is the following construction:<br>
<br>
answer.ID ( &gt; 1 &amp;&amp; &lt; 4 ) || == 5<br>
<br>
That parenthetical followed by an or-equals looks suspicious to me (dialect<br>
mvel).  Although Drools 5.1.1 eats it just fine, should it?  I want to tell<br>
my users to write the proper rule syntax; this doesn&#39;t look right to me.  On<br>
the other hand, if it is proper syntax, I&#39;d rather not change it, as there<br>
are hundreds of rules that use it.  :-(<br>
<br>
Best,<br>
Laird<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/JBRULES-2932-suspicious-syntax-might-be-the-cause-tp2730984p2730984.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/JBRULES-2932-suspicious-syntax-might-be-the-cause-tp2730984p2730984.html</a><br>

Sent from the Drools - Dev mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</font></blockquote></div><br>