# Login help

**URL:** <https://forum.kirupa.com/t/login-help/158927>\
**Category:** Uncategorized\
**Created:** [August 12, 2005, 7:48pm UTC](https://forum.kirupa.com/t/login-help/158927 "2005-08-12T19:48:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![blazes](https://avatars.discourse-cdn.com/v4/letter/b/35a633/32.png) [@blazes](https://forum.kirupa.com/u/blazes)\
**Post date:** [August 12, 2005, 7:48pm UTC](https://forum.kirupa.com/t/login-help/158927/1 "2005-08-12T19:48:07Z")

</div>

```auto
 

on(press)
{if (username=="blazes816") & (password=="password") {
 gotoAndPlay(3);
}
else {
 gotoAndPlay(2)
}}

 

```

> **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 2: Unexpected ‘&’ encountered  
> {if (username==“blazes816”) & (password==“password”) {  
> **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 5: ‘else’ encountered without matching ‘if’  
> else {  
> Total ActionScript Errors: 2 Reported Errors: 2

I know the problems but what can I do instead of ‘&’. And what ‘else if’ can I do so that any other username or password go to frame 2.
