Int Not Equals
The other side of the comparison
- not_equals
The mirror image of Int Equals, and the node you reach for when the logic reads more naturally as "do something unless." It takes an integer i, compares it against a second integer not_equals (default 0), and returns true whenever they don't match. Same pack, same family (Gadget/logic in 2daadv/ComfyUI-GadgetNodes), same no-frills mechanism: i != not_equals, output as a BOOLEAN.
Why you'd want the negated version instead of just putting an inverter after Int Equals: legibility. "Proceed when this isn't zero" reads directly as a not_equals: 0 widget, and a graph you can read is a graph you can trust. ComfyUI's logic layer rewards picking the node that matches the sentence in your head.
The two inputs:
i- the integer being tested (a seed, a counter, an index, whatever you're guarding).not_equals- the value it must not equal to return true. Default0.
Output: BOOLEAN named not_equals.
Real uses:
- "Run the detail pass unless the seed is 0." Zero is the conventional "not set" seed; a
not_equals: 0gate is a tidy way to express "only when a real seed is present." - Progress guards. If a counter hits the sentinel you use for "finished," any value that isn't it means "keep going."
- The inversion you were going to build anyway. A switch that takes a boolean often only exposes one side cleanly; this node gives you the other without wiring up a
Notnode you didn't have.
Pitfall worth naming: like all strict integer comparisons, this one has no tolerance. If you're comparing against a value that drifts by one - a sampler reporting an effective step count, a batch index that occasionally goes off by one - you'll get spurious trues, and your graph will "randomly" change behavior. For those cases the pack's Int Nearly Equals (true when the difference is within 1) is the more honest tool.
The pack itself is the usual story by now: MIT, one developer, no community reputation to speak of because it's brand new. Install via ComfyUI Manager (search "GadgetNodes") or git clone https://github.com/2daadv/ComfyUI-GadgetNodes into custom_nodes/, pip install -r requirements.txt, restart. Pure Python, no frontend extensions, works on the old canvas and Nodes 2.0 alike.
Two integers in, one boolean out, and the sentence "unless" gets a home in your graph.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| i | INT | — | |
| not_equals | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| not_equals | BOOLEAN | — |