The way one should do it in JESS is not procedurally has been expected here.

The conditions should be used to build the rules separately,
If you need an else if structure, it ideally is what  JESS does naturally.
However , if your requirement is :
   if(c1)
   {
       a1.
       if(c2)
       {
          a2.
       }
   }
Then you could simply use both the conditions in the rule for firing a2 and only c1 for a1.


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.



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