my script:

if (coins == 0) {
gotoAndStop(1);
}

and it doesn't work.
The script is on a Movie Clip and the variable "coins" appear on the game like "Coins: <coins>". I don't know if it changes something, but just to you guys know. So, whats the problem?