Then why does this work?
(test(and(= ?servicecode 847312380)(> ?quantity 3)))
(test(or(= ?amount 1.54)(< ?rvu 1)))
An or with two items works, but not with just one.
yuping he wrote:
>
> Jim, on LHS of your rule, you are actually testing
>
> (test
> (and(= ?servicecode 847314565)(= ?quantity 1))
> )
> AND
> (test(or(= ?amount 4.17)))
>
> so make no differenec if you put "or" or "and" inside the second test.
> Maybe that is what you need?
> (test
> (or
> (and (= ?servicecode 847314565)(= ?quantity 1))
> (= ?amount 4.17)
> )
> )
>
>
--
View this message in context:
http://www.nabble.com/JESS%3A-Rule-Question-tf3642308.html#a10179834
Sent from the Jess mailing list archive at Nabble.com.
--------------------------------------------------------------------
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]
--------------------------------------------------------------------