I always have trouble getting retract or modify to work.
If (assert (total 0)) gets asserted somewhere, and I want to add to in
another rule:

(defrule load_breakfast
(more ?m)
?t <- (total ?t)
=>
(modify ?t (+ ?t ?m))
)
or
(retract ?t)
(assert (total (+ ?t ?m))

I get messages like:
ATTENTION: Rete Exception in routine Fact::FindSlot while executing
defrule load_breakfast.
  Message: Attempt to find named slot in ordered fact  at line 0:  ( run
) .

Anyone know the answer?

Thanks
Christo
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list. List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to