x=234||56||12 It is wrong on so many levels: x=234 ← assigment. It sets x to 234 and returns new value (234). As any non-zero value is true in bool context it will be true.
56 and 12: As any non-zero value is true in bool context it will be true.
So your condition is actually true||true||true which is obviously true.
You probably want to write if( x == 234 || x == 56 || x == 12) here. Same for second condition.