Home | Sign in | English  Help WLanguage WLanguage functions Standard functions Functions for managing numeric values Functions for managing binary values BinaryXOR Presentation Example Bit-by-bit calculation Binary operator See also  BinaryAND BinaryNOT BinaryOR BinaryXOR Functions for managing binary values
• Bit-by-bit calculation
• Binary operator
WINDEV      WEBDEV    WINDEV Mobile      Others BinaryXOR (Function)
In french: OUExclusifBinaire
Returns the result of a logical exclusive OR (bit by bit) between two values.
Example
// Retrieve the result of a logical exclusive OR
ResBinaryXOR = BinaryXOR(6, 6)  // Returns 0
ResBinaryXOR = BinaryXOR(6, 2)  // Returns 4
Syntax
<Result> = BinaryXOR(<Value 1> , <Value 2>)
<Result>: Integer
Result of the logical exclusive OR.
<Value 1>: Integer
First value to test.
<Value 2>: Integer
Second value to test.
Remarks

Bit-by-bit calculation

BinaryXOR performs the bit-to-bit calculation between <Value1> and <Value2> according to the following table:
 0 1 0 0 1 1 1 0

Binary operator

BinaryXOR is equivalent to the binary operator ||. See Binary operators for more details.
Component : wd240mat.dll
Minimum version required
• Version 9