# Easy question

**URL:** <https://forum.kirupa.com/t/easy-question/256086>\
**Category:** Uncategorized\
**Created:** [March 30, 2008, 3:43pm UTC](https://forum.kirupa.com/t/easy-question/256086 "2008-03-30T15:43:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thejoeknows\_com](https://avatars.discourse-cdn.com/v4/letter/t/5daacb/32.png) [@thejoeknows\_com](https://forum.kirupa.com/u/thejoeknows_com)\
**Post date:** [March 30, 2008, 3:43pm UTC](https://forum.kirupa.com/t/easy-question/256086/1 "2008-03-30T15:43:15Z")

</div>

i want to make it so that in my game you must have 5 points before exiting the level

right now i have:

```auto

if(_root.points == 5);
        then (gotoAndPlay("win"));
    }

```

…buts its not working, what do i have to change?  
the variable im working with is points
