How to make an if statement in jquery method
<pre><code>    .data( "autocomplete" )._renderItem = function( ul, item ) {
    return $( "&lt;li&gt;&lt;/li&gt;" )
        .data( "item.autocomplete", item )
        if ( ( item.parent_term_id == "16" ) ) {
           .append( "&lt;a&gt;" + (item.child_term ? item.child_term : + "") + "&lt;/a&gt;" )
        }
           .appendTo( ul );
    };
</code></pre>

<p>This code is belong to JqueryUi Autocomplete widget. I want autocomplete text input to suggest items if their "parent_term_id" is equals to something, else suggest nothing. (It's Wordpress)</p>

<p>But that if statement is not working. Any idea?</p>
