# Multiple Cases to If Else Statements

**URL:** <https://forum.kirupa.com/t/multiple-cases-to-if-else-statements/95595>\
**Category:** Uncategorized\
**Created:** [November 27, 2003, 2:20pm UTC](https://forum.kirupa.com/t/multiple-cases-to-if-else-statements/95595 "2003-11-27T14:20:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zak](https://avatars.discourse-cdn.com/v4/letter/z/8e7dd6/32.png) [@Zak](https://forum.kirupa.com/u/Zak)\
**Post date:** [November 27, 2003, 2:20pm UTC](https://forum.kirupa.com/t/multiple-cases-to-if-else-statements/95595/1 "2003-11-27T14:20:01Z")

</div>

How would I make it so that i could have multiple correct password or cases to take someone to different Places.

password = inputName;  
if (password == “Flash”) {  
gotoAndPlay(“Scene 1”, 1);  
} else {  
gotoAndPlay(“Scene 1”, 5);  
}

or if they entered in the password “BOB” it would take them somewhere else.
