# Else error

**URL:** <https://forum.kirupa.com/t/else-error/306869>\
**Category:** Uncategorized\
**Created:** [March 23, 2010, 7:04pm UTC](https://forum.kirupa.com/t/else-error/306869 "2010-03-23T19:04:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikalh78](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mikalh78](https://forum.kirupa.com/u/mikalh78)\
**Post date:** [March 23, 2010, 7:04pm UTC](https://forum.kirupa.com/t/else-error/306869/1 "2010-03-23T19:04:56Z")

</div>

why am i getting error 1083: syntax error: else is unexpected? this is the code im using. it has to do with the 2nd else correct?

function goNext(e:MouseEvent):void  
{  
if(!option1.selected == true){  
option2.enabled == false || option3.enabled == false;  
answer.text = “”;  
answer.text = “Correct!”;  
nextButton.visible = true;

```
    }else {
    (option2.selected == true);
    option2.enabled == false
    answer.text = "";
    answer.text = "Wrong try again!";
    }
    
    else 
    {
    (option3.selected == true);
    answer.text = "";
    answer.text = "Wrong try again!";

    }

```

}  
}
