I've just checked, our OR in 3.0 is fine. I initially thought that it would only fire the first outcome, but its not true - Jess fires all matching subrules

( deftemplate Bus
 ( slot size )
 ( slot color )
)

(defrule test
   (or ( Bus ( size "big" ) (color ?c) )
( Bus ( size "big" ) (color ?c) ) ) =>
   (printout t "color - " ?c crlf)
)

(assert (Bus (size "big") (color "red") ) )

(run)
-----------------
Jess> (clear)
TRUE
Jess> (batch "rule1.clp")
color - red
color - red
2

Reply via email to