# Ok what I have is a simple if else script, can anyone help to improve it for a login?

**URL:** <https://forum.kirupa.com/t/ok-what-i-have-is-a-simple-if-else-script-can-anyone-help-to-improve-it-for-a-login/52833>\
**Category:** flash\
**Created:** [May 27, 2004, 9:13pm UTC](https://forum.kirupa.com/t/ok-what-i-have-is-a-simple-if-else-script-can-anyone-help-to-improve-it-for-a-login/52833 "2004-05-27T21:13:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![trevorsaint](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/trevorsaint/32/268_2.png) [@trevorsaint](https://forum.kirupa.com/u/trevorsaint)\
**Post date:** [May 27, 2004, 9:13pm UTC](https://forum.kirupa.com/t/ok-what-i-have-is-a-simple-if-else-script-can-anyone-help-to-improve-it-for-a-login/52833/1 "2004-05-27T21:13:01Z")

</div>

Ok what I am after is a few usernames and passwords in order to access the map I have built.

I have used a simple if else statement, but would really like some direction to further process.

Another cool thing I would like to add is maybe a tick, if correct username has been added, then display tick else dont, the same for password.

```auto

on (release) {
	if (pass == "c9804321") {
	gotoAndStop(2);
	    } else {
	gotoAndStop(1);
   }
}

```

Any help in this area ?

Trev
