I am making a C++ console app in VS 2008. I am wondering how I can write the command: if string = "x" or "y" {command} else {other command} I triedif (string == "x" || "y") {cout <<"correct";} else {cout << "Incorrect" ;} But that didn't seem to work. Is there another way?