# If...Else problem

**URL:** <https://forum.kirupa.com/t/if-else-problem/151260>\
**Category:** flash\
**Created:** [June 14, 2005, 1:43pm UTC](https://forum.kirupa.com/t/if-else-problem/151260 "2005-06-14T13:43:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![WandMan](https://avatars.discourse-cdn.com/v4/letter/w/a88e4f/32.png) [@WandMan](https://forum.kirupa.com/u/WandMan)\
**Post date:** [June 14, 2005, 1:43pm UTC](https://forum.kirupa.com/t/if-else-problem/151260/1 "2005-06-14T13:43:03Z")

</div>

**If…Else problem**  
I need help with this code:

[color=purple]password = inputName

if (password == “Flash”) {  
inputStatus = “Access granted!” ;  
} else {  
inputStatus = “Access denied!” ;  
}[/color]

I would like to have it go to another frame and in the timeline only if the password is correct.

* * *

Any suggestions?
