Digital (Boolean) Xor

From Visuino
Jump to navigation Jump to search

Summary

Outputs True if an odd number of Boolean inputs are True.

Description

The Digital (Boolean) Xor component performs a logical exclusive OR (XOR) operation across multiple Boolean inputs.

The output is True when an odd number of inputs are True.

The output is False when all inputs are False or when an even number of inputs are True.

This makes it useful for conditions where you want a toggle-like behavior or detect mismatched states.

Diagram:

Categories

Properties

  • Input Pins – Integer; defines the number of Boolean inputs to include in the XOR operation.

Pins

  • In – Boolean input pins [0] to [N-1], where N is set by Input Pins.
  • Out – Boolean output, True if an odd number of inputs are True.