Is the OR correct?

did you mean to have an OR that has the same condition for both?

peter


On 3/15/06, Mark Proctor <[EMAIL PROTECTED]> wrote:
>
> 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