title: While statement with multiple conditions
body: <p>I have the following <strong>while</strong> statement -</p>
  
  <pre><code>while ((!testString.Contains("hello")) &amp;&amp; (NewCount != OldCount) &amp;&amp; (attemptCount &lt; 100))
  {
      //do stuff (steps out too early)
  }
  </code></pre>
  
  <p>This is stepping out of the statement even though all the conditions have not been met.</p>
  
  <p>I have tried to reduce it like -</p>
  
  <pre><code>while (!testString.Contains("hello"))
  {
      // this works and steps out when it should
  }
  </code></pre>
  
  <p>And this steps out when <code>hello</code> is present for example. I also tried changing this to an <strong>OR</strong> statement which reversed the problem to never stepping out the statement.</p>
  
  <p>Addint the <code>&amp;&amp; (NewCount != OldCount) &amp;&amp; (attemptCount &lt; 100))</code> conditions is causing this behaviour how can I resolve this?</p>