title: If condition in THEN clause drools
body: <p>I tried researching a lot online but unable to find the exact reason for my error</p>
  <p>Here is my problem</p>
  <p>I am trying to write an if-else condition in RHS (THEN) but my drools show the following error</p>
  <pre><code>[An error occurred when attempting to build drools rule set. Error: Unable to Analyse Expression if (
  </code></pre>
  <p>I know this clearly says that I can't write if inside THEN (RHS), but I was able to do it in drools version 6.5.0-FINAL</p>
  <p>is it something that got introduced in the 6.5.0 version? please guide me in the right direction for this investigation</p>
  <p>I cant create two rules for this I need an if-else condition inside THEN</p>
  <p>my drools version is 5.5.0</p>
  <pre><code>rule &quot;TEST&quot;
  when
       $aa : Age()
  then
       if(//something)
       {
          //something
       }
       else
       {
       }
  end
  </code></pre>