Hi,

I tried for the first time to use backward-chaining and I can't figure out why this simple example don't work :

(deftemplate x
   (declare (backchain-reactive TRUE))
   (slot a)
   (slot b)
)

(defrule printX
 (x (b 12))
 =>
 (printout t "yeah!")
)

(defrule createX
 (need-x (b ?y))
  =>
 (assert (x (a 3) (b ?y)))
)

(run)

Thanks !

_________________________________________________________________
Ne perdez pas de temps dans les files d’attente… magasinez en ligne. http://magasiner.sympatico.msn.ca

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