0
我是CLIPS專家系統的新手。在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