Jim,
show us the complete code of the rule and the fact
this new rule may work because ?rvu is smaller than 1, so (or TRUE FALSE)
gives true.
or with one item works as true value of that item. In your old rule fact
had 4.19, and pattern in or had 4.17 which IS different.
Dusan Sormaz
At 08:35 AM 4/25/2007, you wrote:
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]
--------------------------------------------------------------------
*********************************************************************
* Dusan Sormaz, PhD, Associate Professor
* Ohio University
* Industrial and Manufacturing Systems Engineering Department
* 277 Stocker Center, Athens, OH 45701-2979
* phone: (740) 593-1545
* fax: (740) 593-0778
* e-mail: [EMAIL PROTECTED]
* url: <http://www.ent.ohiou.edu/~sormaz>http://www.ent.ohiou.edu/~sormaz
*********************************************************************