Easy question

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

right now i have:


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

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