IF ELSE using TExt Box and Button


I am new to action script and I have been trying to make a simple game. The aim is to discover the correct sequence of buttons to press, then add the button numbers to reveal a success screen. The added number is typed into a text box (or text entry box) and once the button is pressed, it will move to a start again screen or a success screen The code I am using is:

on (release) {
if (Bob==35) {
} else {
The button does not seem to do any different with a single IF statement.

If you can help you will remove a whole heap of frustration

many thanks in anticipation Johnno :thumb2: