Hi again after a short while:
The answer I got from this list about how to change a fact, was to use the
"modify" function.
I applied this to my example:
     (assert (Shop (a somethg)(b somethgelse)))
     (defrule change-the-fact
          ?fact <-(Shop(a something))
     =>
     modify ?fact (b change))
Or to this one:
     (assert (Shop (a somethg)(b somethgelse)))
     (assert (House (c somethg))
     (defrule change-the-fact
          (House ?some)
          ?fact <-(Shop(a ?some))
     =>
     modify ?fact ((a ?some)(b change))

In both cases Jess enters an infinite loop

So the question would be:How can I modify a fact's slot that isn't the one
used
to do the matching?
thanx


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