I think Neelakantan Kartha wrote:
> 
> I want to write a rule whose RHS  can be used to  assert the following  
> facts regarding red boxes in houses:
> (notify-user (house h1) (box b1))
> (notify-user (house h1) (box b3)) and
> (notify-user (house h2) (box b4)), and use these facts to notify the user.

(defrule dowork
  (house (name ?name) (contains $? ?box $?))
  (box (id ?box) (color red))
  =>
  (assert (notify-user (house ?name) (box ?box))))



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