I think Eric Jain wrote:
[Charset iso-8859-1 unsupported, filtering to ASCII...]
> I have a rule looking something like this:
>
> (defrule exists-parent
> ?taxon <- (taxon (id ~1) (parent ?parent))
> (test(taxon-exists ?parent))
> =>
> (assert (hint "...")))
>
> Now I'd like to make the conditions 'logical', so that the 'hint' is
> retracted automatically when no longer appropriate.
"test" CEs aren't allowed inside "logical", so you have to do the test
in-line. Something like
(defrule exists-parent
(logical
?taxon <- (taxon (id ~1) (parent ?parent&:(taxon-exists ?parent))))
=>
(assert (hint "...")))
---------------------------------------------------------
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]
--------------------------------------------------------------------