title: Which is better apply two conditions in nested If or using single with And?
body: <p>Nested If or single if with And operator,  which is better approach?<br>
  <strong>Single If with And</strong>    </p>
  
  <pre><code>if (txtPackage.Text != string.Empty &amp;&amp; txtPackage.Text == "abc")
  {
     //
  }
  </code></pre>
  
  <p><strong>Nested If</strong>  </p>
  
  <pre><code>if (txtPackage.Text != string.Empty)
  { 
    if (txtPackage.Text == "abc")
    {
       //
    }
  }
  </code></pre>