我是 CLIPS 专家系统的新手。
我如何告诉 CLIPS 在执行特定指令后停止执行规则??????
像这样的东西:
(defrule firstRule
(some assumption)
=>
(if (X happened) then (and (print "yikes 1")(terminate the program))
(defrule secondRule
(some assumption)
=>
(if (Y happened) then (and (print "yikes 2")(terminate the program))
(defrule thirdRule
(some assumption)
=>
(if (Z happened) then (and (print "yikes 3")(terminate the program))
如果发生 Y 和 Z 而 X 没有发生,我希望打印出这样的内容:
yikes 2