I think Rajesh Kumar wrote:
> hello
>
> i want to write rules where if either of the two facts is true the
> action is fired. please tell me how to do it in jess. Do i have to write
> separate rules or can i use the 'or' function in someway.
Not the "or" function, but the "or" conditional element; see section
2.8.5 of the manual.
(defrule foo
(or
(fact-1)
(fact-2))
=> )
---------------------------------------------------------
Ernest Friedman-Hill
Science and Engineering PSEs Phone: (925) 294-2154
Sandia National Labs FAX: (925) 294-2234
PO Box 969, MS 9012 [EMAIL PROTECTED]
Livermore, CA 94550 http://herzberg.ca.sandia.gov
--------------------------------------------------------------------
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]
--------------------------------------------------------------------