How to check if two string are of the same length?
<p>I want to check if two string are of the same length. I tried the following, but it doesn't work.</p>

<pre><code>string passnew = "1233";
string passcnfrm = "1234";

if((passnew.Length&amp;&amp;passcnfrm.Length)&gt;6 ||(passnew.Length&amp;&amp;passcnfrm.Length)&lt;15)
{ 
    // ...
}
</code></pre>

<p>Why does it not work? What do I need to change?</p>
