Hi, I've been looking around and trying a little to decipher the source, but I can't figure this problem out. What's happening here such that joe and jay both fire the five-bananas rule?
Thanks (defquery banana-count (declare (variables ?x)) (banana ?x ?y) ) (defrule five-bananas (banana ?x ?y) (test (= (count-query-results banana-count ?x) 5)) => (printout t "Got one: " ?x crlf) ) (assert (banana joe b1) (banana joe b2) (banana joe b3) (banana joe b4) (banana joe b5) (banana jim c1) (banana jim c2) (banana jay d1) (banana jay d2) (banana jay d3) (banana jay d4) (banana jay d5) (banana jay d6) (banana jay d7) ) (run) -- - joe kopena -------------------------------------------------------------------- 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] --------------------------------------------------------------------
