DD Either Choice
A two-way switch with a toggle that actually says what it's for
- A
- B
- output
Core ComfyUI already has switches, so what's a DD Either Choice for? Readability, mostly. Where a stock switch makes you remember whether 0 means "this" and 1 means "that," this node gives you a labeled Source toggle that reads A or B, and the whole node's job is picking between two inputs.
It's the newest addition to the DD-LogicNodes pack (the author shipped it last), and mechanically it's the simplest thing here: two MatchType inputs, A and B, plus a switch_source boolean. When switch_source is true, the output is A. When it's false, the output is B. That's it.
Why you'd reach for it
Any place you want to choose between two of something mid-workflow without digging through a numeric combo box. Two checkpoints, two prompt styles, two masks, two upscale paths. You wire both candidates in, flip the Source toggle in the UI, and rerun - the toggle is right there on the node labeled A/B instead of hiding behind a true/false input you have to remember.
Because the inputs are MatchType, it routes whatever type you feed it: images, latents, text, conditioning, even a model. Same-type on both sides, naturally.
The honest catch: it is not lazy
Don't mistake this for a getter. The DD getter nodes in this pack mark their inputs lazy so the unselected branch never executes - a huge win when one side of your choice is an expensive KSampler chain. DD Either Choice does not do that. It evaluates both A and B and then keeps one, like a stock switch. If both sides are cheap (a couple of prompts, two file paths), that's fine and this is the cleaner option. If one side is a heavy pipeline you're trying to skip, reach for DD Or Getter instead, which will actually skip it.
Using it
The two inputs are required, and switch_source defaults to true (meaning A) on a fresh node. The output is a single MatchType output named output. Wire your two candidates in, set the toggle, done. There's genuinely no more to it - it's a utility that earns its keep by being boring and legible.
Installing
Part of DD-LogicNodes, so the install is the shared one: ComfyUI Manager → search DD-LogicNodes → Install → restart, or clone https://github.com/dumbdemon/DD_LogicNodes into ComfyUI/custom_nodes. No dependencies, no models, no setup. It does need a current-enough ComfyUI, since the whole pack is built on the newer extension API - if the node is missing from your menu, update ComfyUI first.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| A | COMFY_MATCHTYPE_V3 | — | |
| B | COMFY_MATCHTYPE_V3 | — | |
| switch_source | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | COMFY_MATCHTYPE_V3 | — |