else statement if value is not 1
<pre><code>function pickaddress(item) 
                   {
        if (doc.findItem('juvenile_checkbox').value == '1')
            var val = PC.popupDropdownSmall(page, "court2_name");
             else 

        (doc.findItem('juvenile_checkbox').value != '0')
            var val = PC.popupDropdownSmall(page, "court1_name");
        if (val != "") {
            var arr = val.split(',');
            if (arr.length == 6) {
                doc.findItem('student_name').value = arr[0];
                doc.findItem('student_address').value = arr[1];
                doc.findItem('student_city').value = arr[2];
                doc.findItem('student_state').value = arr[3];
                doc.findItem('student_zip').value = arr[4];
                doc.findItem('student_telephone').value = arr[5];
            }
        }
        return true;
    }
</code></pre>

<p>// I am having issues with getting this function to work. If juvcheckbox = 1 then use var val = PC.popupDropdownSmall(page, "court2_name, but if juvcheckbox != 1 then use  var val = PC.popupDropdownSmall(page, "court1_name"); is what i am trying to accomplish.</p>

<p>thanks for your help in advance.</p>
