Jquery Return value from.post is a bool but how to test the condition
<p>I have some code like:</p>

<pre><code>$.post('/Invoice/UpdateFieldUser/', invoiceLine, function (data) {
    if (data == 'false') {
        alert("An approver could not be updated");
    } else {
        var fieldlabel = $('#fieldapprovallabel' + invoiceLineId + '');
        fieldlabel.text($(".fieldapproverddl option:selected").text());
    }
})
</code></pre>

<p>UpdateFieldUser returns a boolean. I thought I could test the return value as above but it isn't working. Anyone know what I'm doing wrong?</p>
