Joao,
I beg here to differ from this approach.
This approach shows how to write if-then-else in Lisp, which is not
different from writing them in any language with if-then-else
conditional statements (and all of them support IF logic).
Writing your conditions in a rule language like Jess assumes that you
utilize benefits of rule-based approach, which includes data-driven
order of execution.
Dusan Sormaz
Joao Antunes Mourao wrote:
(defrule name-of-the-rule
(put here your conditions for the rule, if any)
=>
(if (condition) then
(put your things here)
)
(if (condition) then
(put your things here)
else
(put your things here)
))
Simple. Good luck.
Joao
-----------
unclassified email
On 10-12-2008 05:47, hansari wrote:
I need rule for
if (condtion1)
then (acton1)
if else (conditon2)
then (action2)
if else (condition3)
then (action3)
else (acton4)
how can perform this by using defrule please help me.
thank you.
------------------------------------------------------------------------------------------------------------
Disclaimer:
If you are not the intended recipient of this email, please notify the
sender and delete it. Any unauthorized copying, disclosure or
distribution of this email or its attachment(s) is forbidden. Thales
Nederland BV will not accept liability for any damage caused by this
email or its attachment(s). Thales Nederland BV is seated in Hengelo
and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------
--
***************************************************
* Dusan Sormaz, PhD, Associate Professor
* Ohio University
* Department of Industrial and Systems Engineering
* 284 Stocker Center, Athens, OH 45701-2979
* phone: (740) 593-1545
* fax: (740) 593-0778
* e-mail: [EMAIL PROTECTED]
* url: http://www.ent.ohiou.edu/~sormaz
***************************************************
--------------------------------------------------------------------
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]
--------------------------------------------------------------------