Hello !
I like to fire a rule when none of my facts match a certain attribute.
(deftemplate node (slot ip) (slot status)) ; status can be up or down
(defrule all-nodes-are-down
(not (exists (node (status up))))
=> (printout t "All nodes are down !" crlf))
....
(assert (node (ip "1.1.1.1") (status down)))
(assert (node (ip "2.2.2.2") (status down)))
(run)
.....
For some reason this does not work.
What am I doing wrong here ?
Thanx for your help !
Matthias
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------