Is the only way to do this an inline if statement?
<pre><code>var filterMinPV = $('.hidePVVol &gt; td input:first').val();
var filterMaxPV = $('.hidePVVol &gt; td input:last').val();
</code></pre>

<p>Currently they are set to an empty string if the input box is empty.  I log these values currently with console.log.</p>

<p>Is it possible to give these values the value of "NULL", the only way I can see of doing this is possibly putting the if statement inside of the val().  But is there a better way perhaps some chaining function I am missing?</p>

<p>So if the input box has a value I want it assigned to the var.  If it is an empty string I want "NULL" assigned to the var.</p>

<p>Hope I explained that well enough!</p>
