# Password for levels?

**URL:** <https://forum.kirupa.com/t/password-for-levels/144097>\
**Category:** Uncategorized\
**Created:** [April 11, 2005, 7:27pm UTC](https://forum.kirupa.com/t/password-for-levels/144097 "2005-04-11T19:27:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danulf](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/danulf/32/555_2.png) [@danulf](https://forum.kirupa.com/u/danulf)\
**Post date:** [April 11, 2005, 7:27pm UTC](https://forum.kirupa.com/t/password-for-levels/144097/1 "2005-04-11T19:27:14Z")

</div>

So, I have started to make a game, I have 4 levels so far, and I thought it would be nice to have some passwords for the different levels…

I suspect that it should be done with some If/else If statement, but I’m not really good with that yet, so I’m asking for some help.

The input-text area has a var of “pass” and when you press the “OK” button, you get a new page, either the level or just back to main screen…

Hope you understand!
