Need help with the 'If' statement!

Hi, I need help with the ‘If’ statement I want it so when i click a button till the socre gets to 5 I want it to go to another frame. I tried but it wont work can anyone help me?

Edit: I am using flash mx