I'm trying to write what should be a simple little rule.  I'm getting data 
a database call, and am able to get that into Jess fine.  I've got a
clp file that's accessing that data fine.  But I now need to do something
(I'm sure trivial once I get the secret decoder ring) like the following:

say I have the following data (facts):

this-week-inventory 15
last-week-inventory 16
this-week-sales 23
last-week-sales 19

And I want a rule that says basically:

IF this-week-inventory IS LESS THAN last-week-inventory
AND this-week-sales IS GREATER ATHAN last-week-sales
THEN
CALL estimate-sales-impact

I've basically got a syntax problem.  I've tried using assert, but I can't
get the syntax of the rule written correctly.  I've got the Jess In Action
book, but what I'm missing is how to use have the above rule activated
correctly.

Any suggestions would be greatly appreciated.

Udo

--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to