I have this quick code snippet:

PHP Code:
var sQuantity 0
if (sQuantity || isNaN(sQuantity)) {
        (
sQuantity parseInt(prompt("Let's begin compiling our student database. How many students would you like to enter?""Number of Students")));
(
sQuantity 1);

But when I run it like this, the prompt doesn't come up at all. Obviously I'm mistaken how this should work. How do I get a prompt to keep popping up if an Integer is not entered? I'm probably going about this all wrong...