re: "Undefined" Value and Unable to Cancel in Script Prompt
Every time I run my script, there is an "undefined" value in the text field by default. Also, clicking cancel does not actually terminate the script; it moves on to the next part of the code (below).


var copies = parseFloat(prompt("Please enter number of copies (1 - 99): "));
while (copies < 1 || copies > 99 || isNaN(copies) ) {
copies = parseFloat(prompt("Please enter a numerical number between 1 and 99: "));
}
Any feedback why this behavior is happening? I've just recently been digging into AE scripting and am probably overlooking something obvious about the cancel function.
Thanks.
