Ok, thanks, there's my decoder ring. It got activated. Can I try and explan what's going on with the rule in order to make sure I've got it right?
> (defrule my-rule > (last-week-inventory ?lwi) > (this-week-inventory ?twi&:(< ?twi ?lwi)) > (last-week-sales ?lws) > (this-week-sales ?tws&:(> ?tws ?lws)) > => > (estimate-sales-impact)) We're defining a rule called my-rule that has a LHS that creates a PATTERN saying: We have a last-week-inventory variable called ?lwi, and it's associated with a fact called last-week-inventory. And we have a variable called twi that's associated with a fact called this-week-inventory and we're checking to see IF ?twi is less than ?lwi, and we have another variable ?lws associated with the fact last-week-sales and we have another variable called ?tws which is associated with the fact this-week-sales and we're checking to see if ?tws is greater than lws, and if that resolves to TRUE, we're going to call the function (estimate-sales-impact). Is that about right? Thanks very much for your kind help. Definitely my error was in not understanding the patternization in (last-week-inventory ?lwi) etc. I THINK I've got it now.... It's almost like saying "LET any fact asserted as a last-week-inventory be known as ?lwi" .... -------------------------------------------------------------------- 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] --------------------------------------------------------------------
