M Int Eq (a==b)
M Int Eq turns 'are these equal?' into a number you can wire
- a_eq_b
ComfyUI lets you build branching logic, but its conditionals are picky about what counts as a "true." M Int Eq sidesteps the whole question by answering "are a and b equal?" with an integer: 1 if yes, 0 if no. No BOOLEAN type ceremony, no special boolean socket - just a number that any integer input, math node, or switch can consume.
That design choice is the whole personality of this node. Output a_eq_b is a plain INT (1 or 0), so it can feed three very different things:
- A switch's selector. Feed it into an index-style A/B switch and you get "if equal, take input A; otherwise take input B."
- A gate condition. Multiply it by a value -
a_eq_b * 5is 5 when the check passes, 0 when it doesn't. Cheap conditional scaling, no separate branch. - A loop stop. Compare a running counter against a target; the 0/1 result tells you when to stop.
Inputs are a and b, both signed 32-bit INT, defaults 0. Equality is exact integer equality - no floating-point fuzz to worry about, which is one of the reasons integer comparisons are the ones you can trust.
A word on expectations: this pack ships only MIntEq, MIntLt (a < b), and MIntLe (a <= b) - there's no "not equal" or "greater than" node. But you don't need them: 1 - a_eq_b inverts equality into not-equal, and swapping the operands of a < b gives you greater-than. Two nodes plus an arithmetic flip cover all six comparisons, and if that feels like homework, the composition is the point - the nodes are small and combinable on purpose.
It ships in ComfyUiNodes (repo Madlumi/ComfyUiNodes, author "Madanie"), a grab-bag of integer math, string helpers, and workflow-glue nodes. Install via ComfyUI Manager - search "ComfyUiNodes" - or:
cd ComfyUI/custom_nodes
git clone https://github.com/Madlumi/ComfyUiNodes
Then restart ComfyUI. No pip requirements or model downloads. Find it under Add Node → mnodes → int.
Real talk: if you're not building conditional workflows yet, this node will sit unused. The day you want one prompt for "frame 0" and another for everything else, it's the hinge.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| a | INT | 0-2147483648–2147483647 | — |
| b | INT | 0-2147483648–2147483647 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| a_eq_b | INT | — |