LOTUSSCRIPT 言語
構文expr1 Xor expr2 構成要素expr1、expr2
johnIsHere = TRUE
jimIsHere = FALSE
oneButNotBothIsHere = johnIsHere Xor jimIsHere
Print oneButNotBothIsHere ' Prints True
' Bit-wise usage Dim z As Integer, y As Integer z% = &b11110000 y% = &b11001100 Print Bin$(z% Xor y%) ' Prints 111100
関連項目