LibreOffice 25.2 Help
αααααΎαβαααααα·ααααΆββ Exclusive-Orβ αααααβααβααααααβααΈαβΒ α
Result = Expression1 XOR Expression2
ααααααβ α α’αααβαααβααΆβαα½α αααβααΆαβααααααβααβαααααΒ α
ααααααβααΈβ1, ααααααβααΈβ2 α ααααααβαααβαα½αβα ααα½αβ αααβα’αααβα ααβααααΒ α
ααΆαβααααΆααβααααΆβαααααα·ααααΆ Exclusive-Orβ ααβααααααβαααΌααΈαβααΈα αααα‘ααβααααα αα·αβ ααβαααα»αβααααΈβαααββαααααβααΆααααΈαβαα»αβααααΆΒ α
ααΆαβααααΆααβαααααΆααα·ααΈβ bitwise Exclusive-Or αααα‘ααβαααΈαβαα½αβ ααααα·αβααΎβαααΈαβααααΌαβααααΆβααααΌαβααΆαβαααααβαααα»αβααααααβααβαα½αβααβααααααβααΆααβααΈαΒ α
Sub ExampleXOR
Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant
Dim vOut As Variant
vA = 10: vB = 8: vC = 6: vD = Null
vOut = vA > vB XOR vB > vC ' returns 0
vOut = vB > vA XOR vB > vC ' returns -1
vOut = vA > vB XOR vB > vD ' returns -1
vOut = (vB > vD XOR vB > vA) ' returns 0
vOut = vB XOR vA ' returns 2
End Sub