Hi,<br>even <br>Test (y == (x + 1)) <br>works.<br><br>Richard : I think you should take a look at this before planning doing complicated calculations with drools <a href="http://lists.jboss.org/pipermail/rules-users/2008-April/005247.html">http://lists.jboss.org/pipermail/rules-users/2008-April/005247.html</a> but it might be fixed now.<br>
<br>Chris<br><br><br><div class="gmail_quote">2008/5/2 Raffi Khatchadourian &lt;<a href="mailto:khatchad@cse.ohio-state.edu" target="_blank">khatchad@cse.ohio-state.edu</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;"><div>On Fri &nbsp;2.May&#39;08 at 10:05:20 +0100, Anstis, Michael (M.) wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
The &quot;when&quot; section matches fact (object) patterns, so your requirement<br>
could be written as:-<br>
<br>
when there is a Test Fact &#39;A&#39; and another Test Fact &#39;B&#39; where &quot;the &#39;x&#39;<br>
property of &#39;A&#39;&quot; equals &quot;the &#39;y&#39; property of fact &#39;B&#39; plus 1&quot; then.....<br>
<br>
This would become:-<br>
<br>
rule &quot;Rule 1&quot;<br>
when<br>
 &nbsp; Test( $y : y )<br>
 &nbsp; Test( x == ($y + 1) )<br>
</blockquote>
<br></div>
Could you combine these conditions? As in:<br>
<br>
when<br>
 &nbsp; &nbsp; &nbsp; &nbsp;Test($y : y, x == $y + 1)<br>
//...<br>
_______________________________________________<br>
rules-users mailing list<div><br>
<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a><br>
</div><div><div></div><div><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>