title: Can this if-else-else logic be rewritten into something neater?
body: <p>Could I write the following logic in a simpler, more easy-to-read way? The below does what I need, but it is very messy:</p>
  <pre><code>if (IsChanged == true)
  {
      return;
  }
  
  // Executed when the close (x) button is pressed,
  // as the Status string is not yet set to a real value...
  else if (Status == &quot;&quot; &amp;&amp; IsChanged == false) 
  {
      CancelClose();
  }
  
  // saving logic falls to here...
  else if (IsChanged == false &amp;&amp; Status == &quot;saving&quot;) 
  {
      IsChanged = false;
  }
  </code></pre>
  <p>Thanks</p>