# If() statements and variable setting

**URL:** <https://forum.kirupa.com/t/if-statements-and-variable-setting/126668>\
**Category:** Uncategorized\
**Created:** [October 26, 2004, 9:44am UTC](https://forum.kirupa.com/t/if-statements-and-variable-setting/126668 "2004-10-26T09:44:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![happy\_hour](https://avatars.discourse-cdn.com/v4/letter/h/a183cd/32.png) [@happy\_hour](https://forum.kirupa.com/u/happy_hour)\
**Post date:** [October 26, 2004, 9:44am UTC](https://forum.kirupa.com/t/if-statements-and-variable-setting/126668/1 "2004-10-26T09:44:49Z")

</div>

Hey guys. Here’s the problem

```php
  
var pin:Number;
pin=1234;
 
enter_btn.onRelease = function(){
if (pin=input_pin) {
gotoAndPlay(3)
}}  
 

```

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.
