# If & else problem

**URL:** <https://forum.kirupa.com/t/if-else-problem/204176>\
**Category:** flash\
**Created:** [October 17, 2006, 6:47pm UTC](https://forum.kirupa.com/t/if-else-problem/204176 "2006-10-17T18:47:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c2k6](https://avatars.discourse-cdn.com/v4/letter/c/a9adbd/32.png) [@c2k6](https://forum.kirupa.com/u/c2k6)\
**Post date:** [October 17, 2006, 6:47pm UTC](https://forum.kirupa.com/t/if-else-problem/204176/1 "2006-10-17T18:47:27Z")

</div>

Hi im having a problem with some code which im trying to use in my site, I have a small input box with an instance name of Jump\_txt and a var name passtext then a button next to it with actions attached :

```auto
on (release) {
password = passtxt
if (password == "3760") {
 gotoAndStop(10);
} else {
 jump_txt.text = "0000"
}
}

```

so in theory when i enter 3760 in jump\_txt it should go go frame 10 but instead it always does the code in the else part of the statement!

Im a real newbie and cheers to kirupa for one of the best sites to learn flash!!  
cheers if u can help!
