Input Test..?

I feel really quite stupid. I am making this math game, and I want to test if the user has inputed a certain answer. I put an input text box named “input1” and a button to the right of that. When the button is clicked, I want it to test and see if the inputed answer is equal to 10. If it is, go to one frame. If it isn’t, go to another frame… See the screenshot. Any help please?