Function won't execute
<p>I'm trying to create a function that will execute on a click,  on the condition that a variable is set to 0;</p>

<p>However, the function will not execute, even if the variable is set to 0. 
(I am using jquery)</p>

<pre><code>var menuVisible = 0 ;
$('#links').click(function(){ 
    if (menuVisible = 0)
    {
        $('#subMenu').show("slow") ;
        menuVisible = 1 ;
    }
});
</code></pre>

<p>I'm testing the value of the variable 'MenuVisible' with alert, and it is indeed '0'. So, why won't the function execute ?</p>
