your line:
rowNum = 0 ? $('#noShows').show() : console.log("number of rows:"+rowNum);
is not correct, there are a few problems with it. the first problem i see is rowNum = 0
is an assignment, not a boolean expression.
you should just use an if statement:
if(rowNum==0)
{
$('#noShows').show();
}
else
{
console.log("number of rows:"+rowNum);
}
more infomation can be found looking at the answer to using ternary operator in javascript to invoke two functions?