The intent of this script is to add the contents of the table cells that a user has selected.
I can't figure out why this keeps returning 'NaN' (not a number) after I have told it to ignore any 'NaN' contents (and exclude them from the running total).
//If the selection is at least one table cell...
if (app.selection.constructor.name == "Cell")
//count cells in selection
//repeat with count from 1 to count of cells
for (a=0; a<=cellCount; a++)
//get contents of first selected cell in the loop
//convert string to # via parseFloat command
if (cellValInteger!="NaN") //NaN = not a number
//set the variable to the sum of each cell value
alert("Please fully select at least one table cell and try again.");