xor

Returns true if one but not both of the inputs is true. If both inputs are true or both are false, it returns false. This is also called the logical exclusive disjunction.

For Boolean structs (vectors and matrices) like bool3 or bool2x4, the result is per component.

Inputs

first

First Boolean value.

second

Second Boolean value.

Output

output

Returns true if the value of the inputs differ (one is true, the other is false).