title: One 'else' for nested 'if' statements
body: <p>I've got a problem which can be simplified to this:</p>
  
  <pre><code>parameters: a, b
  
  if (a &gt; 5)
  {
      Print("Very well, a &gt; 5");
  
      if (b &gt; 7)
          Print("Even better, b &gt; 7");
      else
      {
          Print("I don't like your variables");
      }
  }
  else
  {
      Print("I don't like your variables");
  }
  </code></pre>
  
  <p>I would like to use only one <code>else</code> instead of two since they are the same code. What I thought of was creating an additional method, which will return combined <code>true</code>`false`, but this is a serious overkill.</p>
  
  <p>Another option would be a <code>goto</code>, but this would make code less readable and unsafe.</p>
  
  <p>What is the way to do it, avoiding checking the same condition many times and making it as readable as possible?</p>