Hi,

I am a DROOLS newbie.  I apologize if this has been asked before.

This rule (R1) is not syntactically correct  in the Eclipse .DRL view. 
<b><pre>

rule &quot;R1&quot; 
    when  
        Message( 
             ((attrA = &quot;foo&quot; &amp;&amp; _attrB == &quot;bar&quot;) || AttrA== &quot;foo&quot;)  //syntax error (curious, why?)
        )
    then 
        System.out.println( &quot;R1 pattern-matched Message.  DROOLS Consequence executing now.&quot; );    
end

</pre></b>
but R2 is syntactically correct =
<b><pre>

rule &quot;R2&quot; 
    when  
        Message( attrA = &quot;foo&quot; &amp;&amp; _attrB == &quot;bar&quot;) || 
        Message (AttrA== &quot;foo&quot;)

    then 
        System.out.println( &quot;R2 pattern-matched Message.  DROOLS Consequence executing now.&quot; );    
end

</pre></b>
In Drools 5.2, are R1 and R2 semantically equivalent?




        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://drools.46999.n3.nabble.com/semantically-equivalent-DROOLS-L-value-expressions-tp4020423.html">semantically equivalent DROOLS L-value expressions?</a><br/>
Sent from the <a href="http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html">Drools: User forum mailing list archive</a> at Nabble.com.<br/>