I think Steve Haber wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I am new to JESS. I want to have a fact which contains a boolean value in
> one of its slots. 

Jess's boolean values are the atoms TRUE and FALSE. Don't use 

>         new jess.Value(new Boolean(isDetonation)));

instead use

       isDetonation ? Funcall.TRUE : Funcall.FALSE);

"Boolean" values won't have any special meaning to Jess, and like any
other LISP variant, any value that isn't explicitly false is
considered true (so new Boolean(true) and new Boolean(false) are both
TRUE as far as Jess is concerned.)


> I expect. I would also like to add a check using "NOT", but this rule never
> fires:
> 
>     "     (Friendly-factions $?frdlyfactions&:" +
>     "        (or (not (eval ?is-boom))" +

Indeed. (not TRUE) is always false.


---------------------------------------------------------
Ernest Friedman-Hill  
Distributed Systems Research        Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
Org. 8920, MS 9012                  [EMAIL PROTECTED]
PO Box 969                  http://herzberg.ca.sandia.gov
Livermore, CA 94550

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