Yeah, I've made the same mistake.
Read the sentence again:
If 1 is equal to 2 or 4, then print true.
The "2" and "4" both refer to the "If 1 is equal to [...]." That means, the sentence is just an abbreviation of
If 1 is equal to 2 or 1 is equal to 4, then print true.
This leads us to the if
-clause
if (1 == 2 || 1 == 4)
instead.
1 == 2 || 4
is true because (1 == 2) == false
ORed with 4 == true
, yields true (false OR true = true).