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]
--------------------------------------------------------------------

Reply via email to