Android Question Boolean XOR ("exclusive or" bit operator)

js1234

Member
Licensed User
Longtime User
What is XOR boolean operator?
Like "And" "Or" …. why using "Xor" get syntax error?

BR
 
Yes Yes I know ….. but:

Code: Copy
 Dim bTest1 As Boolean
 Dim bTest2 As Boolean

 If bTest1 And bTest2 Then
 
 End If


working OK but this is SYNTAX ERROR:

Code: Copy
 If bTest1 Xor bTest2 Then
 
 End If

Why?
Code: Copy
    Dim b1 As Int = 1
    Dim b2 As Int = 1
    Dim b3 As Int
    
    b3 = Bit.Xor(b1,b2)
    Log(b3)
 
Upvote 0
Back
Top