(deffunction funcall (?fnc $?args) ;if not already defined
(eval (format nil "(%s %s)" ?fnc (implode$ ?args))))
then:
CLIPS> (deffunction max$ (?l)
(funcall max ?l))
CLIPS> (max$ (create$ 3 6 2 9))
9
CLIPS> (max$ (explode$ "3 6 2 9"))
9
It should be similar w/jess. -MB
On Tuesday, March 18, 2003, at 05:03PM, Ruff, Jeff <[EMAIL PROTECTED]> wrote:
>I am passing a text string to JESS from Java that consists of a
>dimension and a plus tolerance and a minus tolerance [or could be two
>plus or two minus tolerances]. I would like to validate the dimension by
>using max and passing the multifield. I have not been able to get this
>to work. Can I use max or min with a multifield or must I write my own
>max min routine within a foreach loop?
>
>Thanks
>Jeff Ruff
>ChipData
>
>--------------------------------------------------------------------
>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]
>--------------------------------------------------------------------
>
>
>
-Michael [EMAIL PROTECTED]
http://homepage.mac.com/bobak/
--------------------------------------------------------------------
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]
--------------------------------------------------------------------