Re: JESS: Accumulating values in a Variable in JESS

2008-05-09 Thread Wolfgang Laun
On Fri, May 9, 2008 at 3:43 AM, Marcelo Alvarenga Pedrosa [EMAIL PROTECTED] wrote: I need to accumulate the all values obtained by the rules in the same variable, I mean, sum the variable value to another value and storing in the variable. String rule1 = (defrule ruleage; rule1

JESS: Accumulating values in a Variable in JESS

2008-05-08 Thread Marcelo Alvarenga Pedrosa
Dear All, I need to accumulate the all values obtained by the rules in the same variable, I mean, sum the variable value to another value and storing in the variable. Below you can see my code. However it ovewrites the value and in the end only presents the last value. Could you please help me?