Two instances of the same Fact object with different values.
(defrule rule1 
        (red-and-blue red)
        (red-and-blue blue)
        => 
        (printout t "RED AND BLUE" crlf))

Two facts. Fact Red and Fact Blue
(defrule rule2 
        (redFact red)
        (blueFact blue)
        => 
        (printout t "REDFACT AND BLUEFACT" crlf))

Good Luck
-S.
-----Original Message-----
From: Shekar [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 24, 2001 5:10 PM
To: [EMAIL PROTECTED]
Subject: JESS: AND condition


What facts have to be asserted for this rule to fire.


(defrule rule1(red-and-blue red&blue) => (printout t "RED AND BLUE"
crlf))

Shekar




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