Javascript if-else doesn't work
<p>I am trying to run the below code consisting of if statments , but i am not able to show the alert.I even tried only if but no luck. 
Any help would be appreciated.
Thanks.</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;body&gt;
    &lt;script&gt;
        var a= "am";
        var c = 8; 
        var d = 7;

        if(a == a)
        {
            alert("1st if");
            if(c &gt; d)
            {
                alert("2nd if");
                return false;
            }
            else
            {
                alert("1st else");
            }
        } 
    &lt;/script&gt;      
&lt;/body&gt;
&lt;/html&gt;
</code></pre>