Jquery If structure not working as expected
<pre><code>$('#myClick2').click(function () {
                var value = $(this).val();
                If (value != 'on') {
                    $.getJSON('message_center_getMessageLists.asp', {}, function (json) {
                        alert(json.one);
                        alert(json.two);
                        alert(json.three);
                    })
                    .error(function () { alert("There was an error while trying to make this request;  If it persists please contact support"); });
                }
            });
</code></pre>

<p>The $.getJSON part was working just fine until I wrapped the IF statement around it.  I am trying to get the check box to execute the .getJSON only if it is not currently checked.  Anyone have any idea what I am doing incorrectly?</p>
