title: If condition A is matched, condition B needs to be matched in order to do action C
body: <p>My question is:</p>
  
  <pre class="lang-c prettyprint-override"><code>if (/* condition A */)
  {
      if(/* condition B */)
        {
           /* do action C */
        }
      else
        /* ... */
  }
  else
  {
     /* do action C */
  }
  </code></pre>
  
  <p>Is it possible to just write the code of action C one time instead of twice?</p>
  
  <p>How to simplify it?</p>