I think Mehta, Chirag (IT) wrote: > Thank you ever so much. > > One more quick question. In my rule I have calculated the following: > > (/ ?mv ?io) > > Is there anyway to save this along with the Fact reference in ?b ?? >
Sure -- the same way you might do it in Java, by using a little class to represent the association. For example public class Holder { public double number; public Object fact; public Holder(Object o, double d) { fact = o; number = d; } } Then in Jess (store RESULT (new Holder ?b (/ ?mv ?io))) --------------------------------------------------------- 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://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------