If() statements and variable setting

Hey guys. Here’s the problem

var pin:Number;
enter_btn.onRelease = function(){
if (pin=input_pin) {

It’s a cash machine demo, if you were wondering about the “pin” variables.
Basicaly there is an input textbox with the instance name “input1” and the “var” setting is “input_pin” the button has the instance name “enter_btn”.

If the pin number = pin number typed in, go to frame 3. But it dont work…
Thanks in advance.