Thanks Ernest, I have tried a wrong format...I have tried it with braces (store value1 (?input_value_1)) and it didn't work. Without braces it works fine.
Regards, Hari Ernest Friedman-Hill wrote: > > On May 23, 2007, at 1:48 AM, Nara Hari wrote: > >> (defrule rule1 >> (condition) >> => >> (store value1 = ?input_value_1) >> (store value2 (* ?input_value_2 ?input_value_3))) >> >> What is the correct syntax to store the input_value_1 to an output >> variable? > > The term "output variable" has no specific meaning in Jess, so I > can't be sure what you're after. If you're interested in storing the > value of a variable so that it's available using the Rete.fetch() > method, then just (store value1 ?input_value_1) is all you need. The > second argument to the (store) function is the value to store. > > > --------------------------------------------------------- > Ernest Friedman-Hill > Advanced Software Research Phone: (925) 294-2154 > Sandia National Labs FAX: (925) 294-2234 > PO Box 969, MS 9012 [EMAIL PROTECTED] > Livermore, CA 94550 http://www.jessrules.com > > -------------------------------------------------------------------- > To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' > in the BODY of a message to [EMAIL PROTECTED], NOT to the list > (use your own address!) List problems? Notify [EMAIL PROTECTED] > -------------------------------------------------------------------- > > > -- View this message in context: http://www.nabble.com/Assign-an-input-variable-to-an-output-variable--tf3802149.html#a10777147 Sent from the Jess mailing list archive at Nabble.com. -------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]' in the BODY of a message to [EMAIL PROTECTED], NOT to the list (use your own address!) List problems? Notify [EMAIL PROTECTED] --------------------------------------------------------------------
