ComfyUI Node Runs on cloud

Int

The boring node your seed wiring quietly wants

By theUpsider·Created 3 years ago·Updated about a year ago· 234
Int
    • INT
    value0

    Int is a number box that returns the number. Input value (an INT, default 0), output INT, and the code between them is return (value,). If that sounds pointless, you haven't tried to wire a seed or a step count through a logic graph yet, where you discover that a widget inside a node isn't the same thing as a value on a wire.

    The niche: when you want a number to travel through logic. Say you've got an If node choosing between two seeds - you need the seeds to be values coming out of nodes, not typed into widgets on the If node itself. This node is how you get them there. Same for feeding a typed INT input on some other node that insists on a connection, or holding a counter you compare against with the pack's Compare node.

    The one real thing to know

    It's a pass-through, not a converter. It takes an INT and gives you back an INT - it won't parse "42" into 42 and it won't round a float (that's what the pack's Float sibling is for). If the value on the wire is the wrong type, the connection won't even make it: Int accepts an integer, full stop. Keep it simple and it never surprises you.

    For the trivially common case - just controlling a seed - you probably don't need this pack at all; the seed widget on the KSampler already does the job. Reach for Int when a number needs to be decision data, sitting in a logic graph alongside Compare and If. It's the definition of a boring, dependable utility node, and that's a compliment.

    Install

    Standard for this pack. In ComfyUI Manager, search ComfyUI-Logic; or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/theUpsider/ComfyUI-Logic
    

    Restart ComfyUI. No dependencies, no model downloads - one Python file, installs in seconds. The repo is unmaintained per its own header, but a value pass-through doesn't age.

    CategoryLogic

    Inputs (1)

    NameTypeDefaultDescription
    valueINT0

    Outputs (1)

    NameTypeDescription
    INTINT