Hi all,
        i am new to jess and am having problems with this.I create a .clp file which is like this.
 
(deffacts list
(parents-of bob john mary)
(parents-of sue john mary)
(siblings hansel gretel)
)
 
(defrule  find-siblings
(parents-of ?x ?a ?b)
(parents-of ?y ?a ?b)
=>
(printout t ?x ?y))
 
(reset)
(run)
 
when i run this, I get 4 combinations,
bob and bob
bob and sue
sue and sue
sue and bob
 
whereas I only want one.
bob and sue OR sue and bob.
 
Archana
 
 

Reply via email to