I think erich.oliphant wrote: [Charset iso-8859-1 unsupported, filtering to ASCII...] > Hi, > I am trying to figure out the best way to have a rule fire only for a fact > whose slot value is the min or max of a group of facts.
Match a negated pattern to the (nonexistent) fact in which some number is greater than the greatest value. (defrule biggest-number (number (value ?val)) (not (number (value ?val2&:(> ?val2 ?val)))) => ) --------------------------------------------------------- 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] --------------------------------------------------------------------