# If score = something go to something

**URL:** <https://forum.kirupa.com/t/if-score-something-go-to-something/219879>\
**Category:** Uncategorized\
**Created:** [March 20, 2007, 9:14pm UTC](https://forum.kirupa.com/t/if-score-something-go-to-something/219879 "2007-03-20T21:14:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hoodz](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@hoodz](https://forum.kirupa.com/u/hoodz)\
**Post date:** [March 20, 2007, 9:14pm UTC](https://forum.kirupa.com/t/if-score-something-go-to-something/219879/1 "2007-03-20T21:14:45Z")

</div>

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:

```auto
 
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
