What else do you expect with code like this? dD=(aA==aA^aA^0)?12:(aA==1)?23:(aA==2||aA==3||aA==9)?34:(aA==4||aA==7)?45:(aA==5)?56:(aA==6)?67:(aA==8)?78:(aA==10)?89:90;
I now already spent hours in trying to spot the difference
Since you're having such a hard time spotting the problem, I'll give you one more hint:
Try this -> (aA==(aA^aA^0)) instead of this -> (aA==aA^aA^0) and verify that it works.
Then, read my first post carefully in order to understand why it works.
What I mean is that the == operator has higher precedence than the ^ operator.
It follows that this -> (aA == aA ^ aA ^ 0) is the same as this -> ((aA == aA) ^ aA ^ 0), which is the
same as this -> (1 ^ aA ^ 0), which is false if aA is 1 and true otherwise, which is not what you want.