First thanks for the quick repsonse to my question.
In testing the solution provided [thanks mike bobak] below, I find that
if I create a multifield with numeric values it works. In reading the
doc, max requires numeric values. However, my multifield is numeric
values represented as a string. How do I change a string multifield to a
numeric multifield? Must I explode the string multifield and then create
a new multifield, casting the value as a float [will this satisfy the
numeric requirement?].
Thanks in advance.
Jeff Ruff
ChipData

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 7:19 PM
To: [EMAIL PROTECTED]
Subject: Re: JESS: Help is applying max to mutifield


I think mike bobak wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> (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

Indeed, this code works exactly as written. Thanks.




---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems 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]
--------------------------------------------------------------------

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to