I just had this problem tonight, so I thought I’d share the solution. In many languages you can just drop in a string and compare it like this: if ($city == "Portland" || $city == "Seattle") { // do something if city is Portland or Seattle }else { // do something else } And this works just fine. But in C#, strings are treated as objects, so you have to do the same comparison as such: