I think Bogdan Werth wrote:
> what I want is somehow to call all the facts from the template above and 
> substract the amount in ?amount2eat from the slot amount. 

You just write a single rule that matches one fact that needs
changing, plus any other facts that supply needed data,  and do the
modification on the RHS. The rule would fire once for each eligible

This may cause an infinite loop -- that can happen when you match a
fact on the LHS and modify it on the RHS. If you're using Jess 7 (and
you should be!) then use the "no-loop" declaration on this rule to
avoid the problem.

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]

Reply via email to