Small company logo:
   History
 
Advertising banner:
 
 XOR
Home • Help • Customization Tools • FCAS • Language Reference • XOR
 
Purpose
Evaluates whether only one of two expressions is TRUE.
One expression must be TRUE and the other must be FALSE for the XOR result to be TRUE.
Syntax
Expression1 XOR Expression2
Example
Sub Main()
        Dim e1 as Integer, e2 as Integer
        e1 = TRUE: e2 = 5 < 34
If e1 XOR e2 Then
                Print "Only one expression, e1 or e2, is TRUE"
        Else
                Print "Both e1 and e2 are TRUE or Both e1 and e2 are FALSE"
        End If
End Sub