JESS: no conditional operation xor available

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

JESS: no conditional operation xor available

Henrik Rentz-Reichert
I want to compose rules with complex LHS where I want to combine logical operations in complete generality, e.g.
(defrule activation
    (and
        (and
            (o1)
            (or
                (o4 ?x&:(>= 2 1))
                (o5)
            )
        )
        (or
            (o2)
            (o3)
            (and
                (o6)
                (o7)
            )
        )
    )
  =>
  ; do something
)
Unfortunately there is no xor CE in Jess. How can I simulate that in the simplemost way?

Henrik
-- 
..................................................
   
 Dr. Henrik Rentz-Reichert  [hidden email]

 Hafnerstr. 1               fon +49-7533-9342-43
 D-78476 Allensbach         fax              -44
-------------------------------------------------------------------- To unsubscribe, send the words 'unsubscribe jess-users [hidden email]' in the BODY of a message to [hidden email], NOT to the list (use your own address!) List problems? Notify [hidden email]. --------------------------------------------------------------------