---
generated_by: gdlink-build
generated_at: 2026-06-23T12:34:28Z
do_not_edit: true
title: XOR
brick_type: gate
tier: Basic
generated: true
---
# XOR
**Category:** Gate
**Tier:** Basic
## Purpose
Outputs TRUE when EXACTLY ONE connected input listener is active (exclusive or).
## Visual Reference
```{raw} html
```
## When To Use
- Mutually exclusive actions (walk XOR run, not both)
- Toggle switches (press A or B to toggle, not both)
- State machines (in exactly one state at a time)
- Single-choice selections (select one option only)
- Conflict detection (error if multiple conditions true)
## Runtime Behavior
**Triggers**: When exactly one connected input is TRUE (not zero, not multiple)
```{raw} html
```
## Properties
| Property | Type | Default | Notes |
|---|---|---|---|
| Type | option | XOR | Logic gate type - change without reconnecting |
## Example Use Cases
**Walk or Run (Not Both)**:
> Sample inspector layout removed for compatibility.
**Toggle System**:
> Sample inspector layout removed for compatibility.
**Single State Enforcement**:
> Sample inspector layout removed for compatibility.
**Direction Input (4-way)**:
> Sample inspector layout removed for compatibility.