Number Input Condition
Compare two numbers to drive logic in ComfyUI
This is the little "is A bigger than B?" node. Number Input Condition compares two numbers with an operator you pick - greater than, less than, equal, and so on - and gives you back a result you can use to steer the rest of the graph. It's a building block, not a headline feature, but if you're wiring any kind of branching or gating logic in ComfyUI, you end up wanting one of these.
Per the WAS docs it can "compare between two inputs or against the A input," so it covers both "compare A to B" and single-value checks. Think of it as the comparison half of a logic setup: this node decides true or false, and a switch node downstream acts on that decision.
How it works
You give it a number for A, a number for B, and choose the comparison. The node evaluates A <operator> B and returns the outcome. Wire that outcome into something that consumes a boolean or a number - a Logic node, an input switch, a node that expects a 1/0 flag - and you've built a conditional path without writing any code.
Where this earns its keep is automation. Pull a value out of your workflow - an image dimension via Image Size to Number, a step count, a random roll from Random Number - and use Number Input Condition to ask a question about it. "Is the width over 1024?" "Did the random number land above the threshold?" The answer becomes the thing that flips a switch.
The inputs and outputs that matter
The two you set are A and B, plus the comparison operator that sits between them. That's the whole configuration. The output is the result of the comparison, meant to feed the next logic or switch node - it's not something you look at, it's something you route.
Beginners overthink this one. It's genuinely just "number, number, which comparison." The skill is in what you connect it to.
How to install it
It comes with WAS Node Suite. Install the pack once via ComfyUI Manager - search WAS Node Suite, install, restart - or clone it:
cd ComfyUI/custom_nodes
git clone https://github.com/WASasquatch/was-node-suite-comfyui
pip install -r was-node-suite-comfyui/requirements.txt
then restart. On Windows portable, run the pip step with python_embeded\python.exe -s -m pip install -r ... (or use the bundled install.bat) so the dependencies install into ComfyUI's own Python. This node has no models or heavy libs of its own - it's pure arithmetic.
Common issues & troubleshooting
Nothing "happens." This node only decides - it doesn't act. If your graph isn't branching, the missing piece is downstream: you need a switch or logic node reading the result. Number Input Condition answers the question; something else has to do the thing.
Int vs float surprises. Comparisons care about type. If A comes in as a float like 1023.9999 and you're checking >= 1024, it'll read false even though you meant it as "1024." When results feel off by a hair, convert cleanly first (WAS ships Number to Int / Number to Float for exactly this) so you're comparing what you think you're comparing.
Newer graphs prefer native primitives. WAS's number and logic nodes predate ComfyUI's own primitive nodes and a lot of the modern quality-of-life packs. They still work fine, but if you're building fresh, check whether a native or rgthree equivalent fits your graph more cleanly before committing to the WAS chain.
The pack won't import. WAS Node Suite is large and unmaintained since late 2023; the usual failure is an "Import Failed" after a ComfyUI update, from a dependency version clash (opencv is the frequent culprit). Reinstall its requirements against your ComfyUI Python and restart - the logic nodes themselves are rock solid, it's the suite's install that occasionally throws a fit.
Inputs (0)
No inputs
Outputs (0)
No outputs