I'm getting kind of confused on 6/9 of CodeAcademy's Rock Paper Scissors excercise. All I know right now is that there's three options, rock, paper, scissors. I have to log all the outcomes of the game. On 6/9 I'm asked to nest if/else statements and this was my submission: 

```
var compare = function (choice1, choice2) {
if (choice1 === choice2) {
    return("The result is a tie!"); }
}; if (choice1 == "rock") {
   } if (choice2 == "scissors") {
        return ("rock wins");
} else { 
    return ("paper wins");
}; 

```

For some reason it's telling me that there's a problem with my syntax and that 'return is not in function'. I also don't really understand the nesting of the if statements. Surely it should be if, elseif and then else? 

I'd appreciate any clarity on the excercise if you'd be so kind. I genuinely can't get my head around this really simple excercise and it's stressing me out. I could just input some answer from the CodeAcademy Q and A but then I wouldn't understand it.