例如,我有:
(deftemplate Animal
(slot has-feathers (default FALSE))
(slot name (default "George"))
)
在一项规则中,我有:
(defrule bird-test
?a <-(Animal (has-feathers ?))
=>
(printout t ?a.name " is a bird" crlf)
"Add slot 'bird' to ?a or Animal"
)
我该怎么做?并提前谢谢你
编辑:谢谢各位!我想我明白我需要做什么。