Checking String

I'm trying to compare a string to see if it compared with an or operation.

if(value == "test1" || "test2")
cout << passes this test<< endl;

When do this with value = "notTest", it still output passes test. Can someone tell me what is wrong with this?
you can't do it like this because that dose mean it's always true...
if(value == "test1" || "test2")
that should be done like,
if(value == "test1" || value == "test2")
Topic archived. No new replies allowed.