title: How to determine if three ints are all equal
body: <p>Hi say I have three ints: value1, value2 and value3.</p>
  
  <p>How do I best determine if they are all the same?</p>
  
  <p>I tried:</p>
  
  <pre><code>return value1 == value2 == value3
  </code></pre>
  
  <p>But this said:</p>
  
  <blockquote>
    <p>Operator '==' cannot be applied to operands of type 'bool' and 'int'.</p>
  </blockquote>
  
  <p>So I guess it compares the first two which returns a boolean which it tries to compare to the third.</p>
  
  <p>I could go:</p>
  
  <pre><code>return value1 == value2 &amp;&amp; value2 == value3;
  </code></pre>
  
  <p>But this seems to be getting untidy.</p>
  
  <p>Anybody have a good suggestion?</p>