An else in a rule doesn&#39;t make sense, because the LHS can be false for any number of reasons, in your example:<br>
  - no employee at all<br>
  - an employee not in state MH<br>
<br>If you want this to be in a single rule you&#39;ll have to have only one action that&#39;s executed when the LHS matches.<br><br>You know that you can code any RHS actions in a DRL function (or a Java static or non-static method) and call these from different RHS?<br>
<br>But if you are hell-bent on doing it in a single rule, use a Java if statement on the RHS.<br><br>-W <br><br><br><br><div class="gmail_quote">2010/9/9 Kripa Nathwani <span dir="ltr">&lt;<a href="mailto:Kripa.Nathwani@lntinfotech.com">Kripa.Nathwani@lntinfotech.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hello,</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">I need to implement a functionality as follows:</p>
<p class="MsoNormal">If an employee belongs to a particular state(MH) for a particular month(Feb) then take an action.</p>
<p class="MsoNormal">If an employee belongs to the same state(MH) but for different month (non Feb) then take another action.</p>
<p class="MsoNormal">I can implement it using two different rules(Feb rule and nonFeb rule). BUT if I want to implement it using a single rule is there any provision for the same in Drools?</p>
<p class="MsoNormal">Similar to an if-then-else statement in java.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal" style=""><span style="font-size: 14pt; font-family: &quot;Brush Script MT&quot;; color: black;">Best Regards,</span></p>
<p class="MsoNormal" style=""><span style="font-size: 14pt; font-family: &quot;Brush Script MT&quot;; color: black;">Kripa</span></p>
<p class="MsoNormal"> </p>
</div>
<br>
<hr>
<font size="3" color="Black" face="Arial">This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from
 your system.<br>
</font>
<br>
______________________________________________________________________<br>
</div>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>