Do you mean LHS (left hand side) or RHS (right hand side)? The LHS is
the "if" part; the RHS is the "then" part.
If you really mean RHS, then one simple way to translate this would
look like
(defrule VAT
(item (price ?xx))
=>
(assert (VAT (* ?xx 0.17))))
but of course I've made some arbitrary assumption about how item,
price, and VAT are to be stored.
If you really mean LHS, well, that's just not how things work.
On Jan 9, 2008, at 7:25 PM, Nice Bright wrote:
could you please guide me an example which says how I can use
calculation in the LHS of the definition of a rule.
e.g
if the price of item is xx then VAT=xx * 17%
Thanks
Nice
Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
---------------------------------------------------------
Ernest Friedman-Hill
Informatics & Decision Sciences Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://www.jessrules.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]
--------------------------------------------------------------------