ComfyUI Node
MD: Any Switch (Boolean)
A ComfyUI node in MD_Nodes/Logic with 5 inputs and 1 output.
MD: Any Switch (Boolean)
- on_true
- on_false
- default_value
- selected_output
◄conditionfalse►
◄pass_throughfalse►
CategoryMD_Nodes/Logic
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| condition | BOOLEAN | false | ROUTING SIGNAL • Purpose: Determines which input path to pass through. • Action: True routes to Path A. False routes to Path B. |
| pass_through | BOOLEAN | false | DEBUG MODE • Purpose: Hard-overrides the logic gate. • Action: If True, ignores 'condition' and always outputs Path A. ⭐ Recommended: Keep False for normal operation. |
| on_trueopt | * | PATH A (True) • The value to output if condition is True. | |
| on_falseopt | * | PATH B (False) • The value to output if condition is False. | |
| default_valueopt | * | FALLBACK VALUE • Purpose: Output if the selected path is missing/unconnected. ⭐ Prevents workflow crashes from null outputs. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| selected_output | * | — |