Retracting Facts from a Rule
(defrule do-a-chore
(today is ?day) ; ?day must have a consistent binding
?chore <- (do ?job on ?day)
=>
(printout t ?job � done�)
(retract ?chore)
)
Must assign a variable to item for retraction
Previous slide
Next slide
Back to first slide
View graphic version