(deforum) Logical OR
Combine conditions so one true is enough
- BOOLEAN
Two Boolean inputs, one Boolean output, true if either input is true. That's DeforumOrNode in one line - the smallest "either of these" gate in the Deforum logic toolkit.
It exists because animation graphs grow branches fast. "Apply this effect if we're past frame 150 or if the audio level is high." "Use the video's motion if hybrid is on or if the seed is even." Comparators hand you single conditions; this node stitches two of them together so one true result is enough to trigger a switch.
Inputs and output
condition_1andcondition_2- twoBOOLEANinputs, from any source.BOOLEAN-truewhen either (or both) inputs are true.
Standard truth table, no surprises. Wire it into a switch, an Image Switcher, or another logic node and the graph starts behaving like a program instead of a straight line.
Pairing it with the pack
It's the natural companion to the other logic nodes: Logical NOT inverts a branch, FLOAT Comparator and the INT comparator produce the raw conditions, and OR combines them. A typical chain looks like Comparator → OR → switch, and once you're comfortable with that shape you'll find yourself building multi-condition behavior that would otherwise require duplicating whole subgraphs.
Installation
Ships with Deforum Nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/XmYx/deforum-comfy-nodes.git
Restart ComfyUI, or grab "Deforum Nodes" by XmYx from ComfyUI Manager. Pure logic - no models, no backend dependencies beyond the pack itself, works even mid-install.
Gotchas
Honestly, there's almost nothing to get wrong. One habit worth forming: keep the two conditions obvious in your own head - condition_1 and condition_2 are just labeled A and B, and when you revisit a workflow in a month, a switch_prompt_after_120, is_hybrid_active style chain reads far better than anonymous wires. The node won't do it for you.
If you never need it, fine - but the moment you find yourself thinking "this should happen if X or Y," this is the node.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| condition_1 | BOOLEAN | — | |
| condition_2 | BOOLEAN | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |