Concatenating Integer variables

Jim_cliff:
Exploring the issue further I believe the logical && operator is causing 'short-circuiting'. Basically if condition1 = False then the remaining 4 conditions are not evaluated.

You have the logic wrong. To check for inequality you want to see if ANY bit does not match. By using AND instead of OR you are getting 'true' only when EVERY bit does not match. Change && to ||.