If score = something go to something

hey

i got a score counter with a var name score
and what i want is that as soon u have 30 points that it goes to frame 4

how the hell do i do that
i tried something like this:

 
if (Number(score) == 15) {
gotoAndStop(1);
}

but it doesnt do anything…

and another question is there a command to restart the flash file?
like on release restart fla