XOR

Category: Gate Tier: Basic

Purpose

Outputs TRUE when EXACTLY ONE connected input listener is active (exclusive or).

Visual Reference

As added to your scene
XOR brick as it appears in the GDLink editor

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)

Generated UI Mockup — showing expanded properties
XOR
-
x
Type:
XOR

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.