I want to run a code only if the argument[0].recordCount
is greater than zero or is NOT undefined. However, the code is ran when the argument[0].recordCound
alert shows undefined.
if(arguments[0].recordCount > 0 &&
arguments[0].recordCount !== 'undefined')
{ //if more than 0 records show in bar
document.getElementById('totalRecords').innerHTML =
arguments[0].recordCount + " Records";
}
How can I test for undefined here?