Re: JESS: Rule comparing slot values that can be omitted

2008-07-03 Thread Ernest Friedman-Hill
On Jul 3, 2008, at 1:29 PM, Henrique Lopes Cardoso wrote: Now, I understand the error. But maybe Jess should be nicer by noticing that if the comparison cannot be made, then it should simply not fire the rule (quietly). In general, you can just use a more appropriate default for the

RE: JESS: Rule comparing slot values that can be omitted

2008-07-03 Thread rrogers
I have a similar situation but I wanted to be able to distinguish NIL cases. I used the defadvice to wrap the various numeric comparison operators to handle this in the way I wanted. In my case, I treat NIL as unknown and all of the tests fail (e.g. NIL is neither greater, less, or equal to any