I think Mitch Christensen wrote: > I want a rule that will only match the assignment fact with key=child.
(defrule find-singletons ;; There's an assignment with key k and value v ?a <- (assignment (key ?k) (value ?v)) ;; and no other assignment has the same ;; key but a different value (not (assignment (key ?k) (value ~?v))) => ;; ?a is a singleton assignment ) --------------------------------------------------------- Ernest Friedman-Hill Advanced Software Research Phone: (925) 294-2154 Sandia National Labs FAX: (925) 294-2234 PO Box 969, MS 9012 [EMAIL PROTECTED] Livermore, CA 94550 http://herzberg.ca.sandia.gov -------------------------------------------------------------------- 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] --------------------------------------------------------------------
