If you're trying to find a user_profile with hiv_status "neg" and age
any value except "under_18", then

(user_profile (hiv_status "neg") (age ~"under_18"))

will do it.

I think Message UK wrote:
> 
> I'm trying to negate the following:
> 
> (age "under_18")
> 
> I've tried:
> (not(age "under_18"))
> 
> and
> 
> (age ~"under_18")
> 
> 
> as part of this rule:
> 
> (defrule
> ?u <- (user_profile (hiv_status "neg") (age "under_18"))
> ?e <- (enquiry (someone_has_HIV "done"))
>       =>
>       (modify ?e (transmission_entry "yes")))
> 
> 
> How do i do it???
> 
> Thanks folks.
> 

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