<br>&nbsp;&nbsp;&nbsp; Not really and that is why it is better to avoid eval() blocks.<br>&nbsp;&nbsp;&nbsp; Can you show what rule are you trying to create? Maybe there is another way of writing it?<br><br>&nbsp;&nbsp;&nbsp; []s<br>&nbsp;&nbsp;&nbsp; Edson<br><br><div><span class="gmail_quote">
2007/8/27, cfili &lt;<a href="mailto:cfilippelli@cerner.com">cfilippelli@cerner.com</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>I still have not found a solution to this problem.&nbsp;&nbsp;Nobody has a suggestion?<br><br><br>cfili wrote:<br>&gt;<br>&gt; Hi,<br>&gt; I have just started using Drools 4.0 and I am very pleased so far.&nbsp;&nbsp;I do<br>&gt; have one question regarding storage of a result from within an eval block.
<br>&gt; For example if I have the following eval in my rule:<br>&gt;<br>&gt; eval((value1 /value2) &gt; 0.5)<br>&gt;<br>&gt; Is there a way to store the result of value1/value2 in a temp variable so<br>&gt; that it can be accessed in the &quot;then&quot; part of my rule?&nbsp;&nbsp;I want to avoid
<br>&gt; recomputing the result again in the then section.<br>&gt;<br>&gt; Thanks.<br>&gt;<br><br>--<br>View this message in context: <a href="http://www.nabble.com/Storing-temp-results-in-eval-block-tf4225783.html#a12351896">
http://www.nabble.com/Storing-temp-results-in-eval-block-tf4225783.html#a12351896</a><br>Sent from the drools - user mailing list archive at <a href="http://Nabble.com">Nabble.com</a>.<br><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">https://lists.jboss.org/mailman/listinfo/rules-users
</a><br></blockquote></div><br><br clear="all"><br>-- <br>&nbsp;&nbsp;Edson Tirelli<br>&nbsp;&nbsp;Software Engineer - JBoss Rules Core Developer<br>&nbsp;&nbsp;Office: +55 11 3529-6000<br>&nbsp;&nbsp;Mobile: +55 11 9287-5646<br>&nbsp;&nbsp;JBoss, a division of Red Hat @ 
<a href="http://www.jboss.com">www.jboss.com</a>