Why wont the if look for both Peter and John?
#include <iostream>
#include <string>
using namespace std;
int main()
{
string Name, Mood; // obvious string
cout << "Whats your name?" << endl;
cin >> Name;
if (Name == "Peter"|| "John") {
cout << "Hello, master! How are we feeling to day?" << endl;
cin >> Mood;
}else{
cout << "Hello, " << Name << "!!!";
}
return 0;
}