Not Exclusive Or Function
- Updated2025-01-28
- 3 minute(s) read
Not Exclusive Or Function
Computes the logical negation of the logical exclusive or (XOR) of the inputs. Both inputs must be Boolean values, numeric values, or error clusters. If both inputs are TRUE or both inputs are FALSE, the function returns TRUE. Otherwise, it returns FALSE.
The connector pane displays the default data types for this polymorphic function.

Inputs/Outputs
![]() x must be a Boolean value or a number. x can be a scalar, array or cluster of numbers or Boolean values, array of clusters of numbers or Boolean values, and so on. If x is an error cluster, only the status parameter of the error cluster passes to the input terminal. ![]() y must be a Boolean value or a number. y can be a scalar, array or cluster of numbers or Boolean values, arrays of clusters of numbers or Boolean values, and so on. If y is an error cluster, only the status parameter of the error cluster passes to the input terminal. ![]() .not. (x .xor. y)? is the logical negation of the logical exclusive or (XOR) of x and y. |
Not Exclusive Or Truth Table>
x | y | .not. (x .xor. y)? |
---|---|---|
T | T | T |
T | F | F |
F | T | F |
F | F | T |
FPGA Module Details
The following details apply when you use this object in an FPGA VI.
Single-Cycle Timed Loop | Supported. |
Usage | For maximum time and resource efficiency, use Boolean functions inside a single-cycle Timed Loop. |
Timing | Inside single-cycle Timed Loop--When you use Boolean functions inside a single-cycle Timed Loop, each Boolean operation adds slightly to the combinatorial logic delay of the single-cycle Timed Loop. Outside single-cycle Timed Loop--When you use Boolean functions outside a single-cycle Timed Loop, each Boolean operation requires one clock cycle. |
Resources | Boolean functions consume significant FPGA resources only when you wire a large array to the input. Consider limiting arrays to conserve FPGA resources. |
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Booleans\Boolean Functions.vi