Nodes/ComfyUI-N-Nodes/Integer Variable [πŸ…-πŸ…’πŸ…€πŸ…˜πŸ…£πŸ…”]
ComfyUI Node Runs on cloud

Integer Variable [πŸ…-πŸ…’πŸ…€πŸ…˜πŸ…£πŸ…”]

The currently-registered version of N-Nodes' number node

By Nuked88Β·Created 3 years agoΒ·Updated 2 years agoΒ· 237
Integer Variable [πŸ…-πŸ…’πŸ…€πŸ…˜πŸ…£πŸ…”]
    • INT
    β—„value0β–Ί

    This is the same node as the pack's plain Integer Variable - identical schema, same job - just wearing the [N-SUITE] badge the pack's classes picked up after its February 2024 rewrite, when Nuked88 renamed everything to stop colliding with other packs' node names. Both class names ended up indexed; if you're setting up a fresh workflow today, this suffixed one is the one you'll actually find in a current install's node search.

    The problem it solves is small and specific, and the README says so itself: ComfyUI's built-in Primitive node can't link certain matched widget pairs together - the README's own example is wanting to wire one KSampler's start_at_step to another KSampler's steps and finding there's no clean way to do it. Integer Variable sidesteps the limitation entirely by not trying to be a primitive at all. It's just a number with an output pin. Set it once, wire that single output to every widget that needs to match, and you've eliminated the "I changed one and forgot the other" bug by construction.

    How it works

    There's no logic here, and that's the point - one widget holds a value, one output pin exposes it as an INT. Every consumer wired to that output is reading the literal same number, always, with no chance of drift. It's the smallest possible tool for the smallest possible problem: two or more places in your graph that need to agree on one integer.

    The input and output

    value - the only input, a plain integer defaulting to 0. INT - the only output, wire it to as many places as you need. If you've used rgthree-comfy's workflow-plumbing tools (Reroute, Context, Power Puter), think of this as the same instinct scaled way down: instead of solving arbitrary widget-linking in general, it solves exactly one case - a shared number - with the minimum node possible.

    Installing the pack

    • ComfyUI Manager - search "ComfyUI-N-Nodes," install, restart.
    • Manual - cd ComfyUI/custom_nodes && git clone https://github.com/Nuked88/ComfyUI-N-Nodes.git, then restart ComfyUI.

    Nothing to download, nothing extra to compile - this doesn't touch the GPT/LLM side of the pack, which is the only part with real dependency weight.

    Common issues & troubleshooting

    Try the built-in Primitive node first. If ComfyUI lets you wire the two widgets you're after directly, you don't need this at all - it only earns a place in your graph for the specific pairs the Primitive node can't reach.

    A downstream value didn't update the way you expected. Almost always this means one of the "synced" widgets is still wired to its own local value instead of this node's output - double-check every consumer you meant to link is actually pulling from the same Integer Variable node, not just set to match it by coincidence.

    You need a float or a string. Same pack ships Float Variable and String Variable as separate, equally minimal nodes - there's no single "Any Variable" type here, each gets its own node.

    CategoryN-Suite/Variables

    Inputs (1)

    NameTypeDefaultDescription
    valueINT0β€”

    Outputs (1)

    NameTypeDescription
    INTINTβ€”