For some reason when I type in the correct words that are in my "contains" statement, the else statement is displayed. This is from the question bot in the swift guide. Here's my code, do you see anything wrong with it?
struct MyQuestionAnswerer {
func responseTo(question: String) -> String {
let lowercaseQuestion = question.lowercased()
//Herobrine Question
if lowercaseQuestion.contains("Herobrine") && lowercaseQuestion.contains("Who"){
return "Herobrine began as a screenshot of a distant figure posted on minecraft forums. The picture was accompanied by the story of a Minecraft player finding someone or something else strange being present. Herobrine is feared by minecrafters to this day."
//Surprised Pikachu Question
} else if lowercaseQuestion.contains("Surprised Pikachu") && lowercaseQuestion.contains("What") {
return "'Surprised Pikachuâ is primarily used as a sarcastic reaction image. The meaning behind using it is to convey a sarcastic sense of shock at an outcome that was fairly obvious. 'Surprised Pikachu' is used by many people today on the internet. The origin of the meme is from a very old pokemon episode where a butterfly pokemon faints"
//Le Monke Question
} else if lowercaseQuestion.contains("Le Monke") || lowercaseQuestion.contains("Uh Oh stinky"){
return "Le Monke is a photograph of an obese orangutan. Le monke was originally posted in 2016. It has recently regained popularity in 2019 for itâs famous words UH OH STINKY"
} else {
return "Error"
}
} //end of func
//end of struct
}