# Multiple Password access

**URL:** <https://forum.kirupa.com/t/multiple-password-access/169643>\
**Category:** Uncategorized\
**Created:** [November 17, 2005, 11:48pm UTC](https://forum.kirupa.com/t/multiple-password-access/169643 "2005-11-17T23:48:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Keith30](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@Keith30](https://forum.kirupa.com/u/Keith30)\
**Post date:** [November 17, 2005, 11:48pm UTC](https://forum.kirupa.com/t/multiple-password-access/169643/1 "2005-11-17T23:48:23Z")

</div>

I have one password that works if this is added to a button.  
How do I allow multiple passwords to be excepted?

## this works for one password…

on (release, keyPress “\<Enter\>”) {  
if (pass eq “jonsmith”) {  
gotoAndPlay(60);  
} else if (pass ne “jonsmith”) {  
gotoAndPlay(“denied”, 2);  
}  
}

## working on this one…

on (release, keyPress “\<Enter\>”) {  
if (pass eq “123-123-123”,“231-231-231”,“321-321-321”) {  
gotoAndPlay(60);  
} else if (pass ne “123-123-123”) {  
gotoAndPlay(“denied”, 2);  
}  
} else if (pass ne “231-231-231”) {  
gotoAndPlay(“denied”, 2);  
}  
} else if (pass ne “321-321-321”) {  
gotoAndPlay(“denied”, 2);  
}  
}
