I think David Ash wrote:
> If I want to return something from a jess.Userfunction (a jess.Value)
> that will
>
> be interpreted as a boolean (true or false) in Jess, how do I do it?
> There
>
> doesn't seem to be any jess.RU.BOOLEAN to pass to a jess.Value
>
> constructor?
>
TRUE and FALSE are the actual symbols TRUE and FALSE; i.e.,
new Value("TRUE", RU.ATOM)
But there's no need to create your own; there are static constants in
the jess.Funcall class you can (should) use -- Funcall.TRUE and
Funcall.FALSE. There's a Funcall.NIL as well.
---------------------------------------------------------
Ernest Friedman-Hill
Science and Engineering PSEs 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]
--------------------------------------------------------------------