Added equation to else if statement.