title: Comparing multiple values at once using &&
body: <p>I have this code:</p>
  
  <pre><code>if ((total == (total1 &amp;&amp; total2 &amp;&amp; total3)))
       {
          [scrollview.contentOffset = CGPointMake (0,0)];
       }
  </code></pre>
  
  <p>here is what it's something like on button action:</p>
  
  <pre><code>if (sender.tag == 1)
      {
          total1 = 10;
      }
  
  if (sender.tag == 2)
      {
          total2 = 20;
      }
  
  if (sender.tag == 3)
      {
          total3 = 30;
      }
  </code></pre>
  
  <p>I am trying to go back to the start page of the scroll view if the user clicked the three correct buttons (similar to a password key).</p>
  
  <p>Does the logical operator <code>&amp;&amp;</code> work well in Objective-C, and did I use it right?</p>