The ^ operator is exclusive or. The truth table for this is
XOR | false true ------------------- false | false true true | true false That's why you get "1" - your if statement evaluates to true.
Cheers,
The ^ operator is exclusive or. The truth table for this is
XOR | false true ------------------- false | false true true | true false That's why you get "1" - your if statement evaluates to true.
Cheers,