Newb Variable Question

Hi:), im new to this forum and I was hoping I could get some help with question. I am a actionscript Newb, and I just started making a very simple game. In this game little bugs fly across the screen which you kill with a fly swatter. When you kill enough bugs (points) the level goes up and the game gets harder. Ive got it so that when you kill the bugs your points go up that works fine. I want your level to go up when you get to 10 points. Ive got this code on the main timeline:
“if (Points == 10 ) {Level++}” could somebody please tell me what im doing wrong?