title: Why '&&' and not '&'?
body: <p>Why is <code>&amp;&amp;</code> preferable to <code>&amp;</code> and <code>||</code> preferable to <code>|</code>?</p>
  
  <p>I asked someone who's been programming for years and his explanation was:</p>
  
  <p>For example, in <code>if (bool1 &amp;&amp; bool2 &amp;&amp; bool3) { /*DoSomething*/ }</code>, <code>bool1</code> has to be true for it to test <code>bool2</code> which has to be true before moving on to <code>bool3</code>, etc. If I'd used a single <code>&amp;</code> instead there is no order to the test even if all of them have to be true to progress to the next line, so why does it matter anyway?</p>
  
  <p>Note: I'd like to point out that I'm the programming equivalent of a toddler and this is not a serious or urgent question. It's more a matter of understanding why things should be done a certain way as opposed to another.</p>