Planck, yes, using xor possible to compare boolean values:
(true xor true) === (true != true) === false
(false xor false) === (false != false) === false
(false xor true) === (false != true) === true
(true xor false) === (true != false) === true
A xor B === (A or B) and (not A or not B)
A xor B === (A and not B) or (B and not A)
A xor B === (not (A and B)) and (A or B)