These questions are answered in the Drools Expert documentation. Look for subsection headers &quot;Bound Variable Restriction&quot; and &quot;Return Value Restriction&quot;. <br><br>-W<br><br><br><div class="gmail_quote">On 27 January 2011 02:13, garySFCA844 <span dir="ltr">&lt;<a href="mailto:gs999zzz@yahoo.com">gs999zzz@yahoo.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;"><br>
hello,<br>
<br>
I&#39;m a newbie to Drools.  I&#39;m trying to write a rule that performs some math,<br>
without resorting to a function or eval. I searched the forum but found lots<br>
of posts on nested function calls,etc but not what I was searching for.<br>
<br>
For simplicity, lets assume I have the following classes<br>
<br>
public class ONE{<br>
double A<br>
double B<br>
double C<br>
}<br>
<br>
public class TWO{<br>
double D<br>
double E<br>
}<br>
<br>
where A, B, C, D, E are themselves calculated values (apr, price at some<br>
date, etc)<br>
<br>
1. What does the LHS of a rule that compares A &gt; D look like?<br>
<br>
2. What does the LHS of a rule that compares A+B &gt; C look like?<br>
<br>
3. What does the LHS of a rule that compares A+D &gt; C look like?<br>
<br>
<br>
I apologize in advance if this was covered already.<br>
<br>
Thanks.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://drools-java-rules-engine.46999.n3.nabble.com/proper-syntax-for-multiple-function-calls-within-LHS-tp2359020p2359020.html" target="_blank">http://drools-java-rules-engine.46999.n3.nabble.com/proper-syntax-for-multiple-function-calls-within-LHS-tp2359020p2359020.html</a><br>

Sent from the Drools - User mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">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>
</font></blockquote></div><br>