-
Notifications
You must be signed in to change notification settings - Fork 0
2.1.3.9 Node: Switch
BDC_Patrick edited this page Jan 31, 2026
·
4 revisions
| Image | Info |
![]() |
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 | |
![]() |
Hold X + Left Mouse Button |
| Name | Pin | Description |
| In | ![]() |
Input execution pin. Triggered by a previous node to start the evaluation. |
| Default | ![]() |
The fallback execution path. Triggered if the variable's value does not match any of the defined cases. |
| [Case Value] | ![]() |
Dynamic output pins. One pin is created for each value added to the 'Switch Values' list. |
| Name | Type | Value | Default | Info |
| Global Value Type | ![]() |
Int, Float, String, Name, etc. | Int | The data type of the global variable to be evaluated. |
| Global Value Name | ![]() |
- | None | The exact name of the global variable as defined in the system. |
| Operating Mode | ![]() |
==, >= | == | Comparison operator. Only visible for numeric types (Int, Float, Int64). |
| Switch Values | ![]() |
- | Default | List of values to compare against. Each entry creates a matching output execution pin. |
| Dev Comment | ![]() |
- | Empty | Developer comment for internal documentation. |
- 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.
I. What is the Dialog Backend?
II. Setting up
|






