Hello everybody,
How can I find the lowest value amongst a list of fact ?
(deftemplate number
"a number"
(slot value (type INTEGER)))
(deffacts list-of-numbers
"a list of numbers"
(number (value 9))
(number (value 3))
(number (value 6)))
I tried some rules like this, but I still can't find how.
(defrule lowest-number
"find the lowest number"
(number (value ?v1))
(number (value ?v2 ... )
.
=>
(printout t "The lowest number is " ?v1 crlf)
)
Can anybody help me please?
--------------------------------------------------------------------
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]
--------------------------------------------------------------------