javascript true and true returning false in if statement?
<p>In the plain javascript function. Both the values, min_chk and max_chk are true, but the if function still shows the alert. not able to figure why?</p>

<pre><code>function Checkit(m,n){
return m&gt;n;
}

var min_chk = Checkit(a,X);
var max_chk = Checkit(b,Y);
if ((min_chk === 'true') &amp;&amp; (max_chk === 'true')){
...
    } else {
    alert('invalid range');
}
</code></pre>
