The problem here is with the comma. If you have a series of expressions connected by commas, then the entire express will have the value of the last expression only. So:
```javascript
false, false, true
// evaluates to true
```
In fact, this last clause doesn't need to be an if statement at all. What you want is something like:
```javascript
if (condition) {
// do a thing
} else if (condition) {
// do another thing
} else if (condition) {
// do yet another thing
} else {
// do a default thing
}
```