This not how if statements work in C++. If you want to know if something is equal to one thing or another thing then it is
if (this == this_thing || this == another_thing)
What you have
if(1 == 2 || 4)
Gets evaluated to
if ((1 == 2) || 4)
if (false || true)
if (true)
So the if statement will always be true.