Skip to content

2.1.3.9 Node: Switch

BDC_Patrick edited this page Jan 31, 2026 · 4 revisions

Switch Node

Image Info
Switch Node A control flow node used to branch the dialogue path based on the value of a global variable.
Description
The Switch Node allows for dynamic branching within a dialogue tree. It evaluates a specified global variable against a set of user-defined values. When triggered, the node compares the variable's current value with the configured cases and executes the corresponding output pin. If no match is found, the 'Default' path is taken. This is essential for creating non-linear stories that react to player stats, choices, or world states.
Shortcut
Shortcut Hold X + Left Mouse Button

In- and Outputs

Name Pin Description
In In Pin Input execution pin. Triggered by a previous node to start the evaluation.
Default Default Pin The fallback execution path. Triggered if the variable's value does not match any of the defined cases.
[Case Value] Case Pin Dynamic output pins. One pin is created for each value added to the 'Switch Values' list.

Details

Node Details
Name Type Value Default Info
Global Value Type Enum Int, Float, String, Name, etc. Int The data type of the global variable to be evaluated.
Global Value Name FName - None The exact name of the global variable as defined in the system.
Operating Mode Enum ==, >= == Comparison operator. Only visible for numeric types (Int, Float, Int64).
Switch Values Map - Default List of values to compare against. Each entry creates a matching output execution pin.
Dev Comment String - Empty Developer comment for internal documentation.

Notes

- The Switch Node is dynamic. Adding or removing entries in the Switch Values list will automatically update the pins on the node in the graph editor.

- For numeric types, you can choose between "Equal" (==) or "Bigger or Equal" (>=) logic to handle range-based branching.

- For as long as the nametag of a case contains "New Case", the Node will show the actual Value needed beside a Pin. You can rename the nametag to show your custom one instead.

Documentation Index

I. What is the Dialog Backend?
II. Setting up
III. Binding UI
IV. The Subsystem
V. The Components
VI. Dispatchers
VII. Others

Demo available: Demo Page

Clone this wiki locally