Nodes/Endless ️🌊✨ Nodes/Six Input Integer Switch
ComfyUI Node

Six Input Integer Switch

The Endless int switch

By tusharbhuttΒ·Created 3 years agoΒ·Updated about a year agoΒ· 68
Six Input Integer Switch
    • INT
    β—„switch1β–Ί
    β—„int10β–Ί
    β—„int20β–Ί
    β—„int30β–Ί
    β—„int40β–Ί
    β—„int50β–Ί
    β—„int60β–Ί

    The integer switch family in Endless goes four, six, eight - and six is the one that feels like the right amount of choice without turning the node into a control panel. Six_Input_Int_Switch takes six integer inputs, a switch selector (1-6), and passes the selected value through as a single INT. Presets for steps, seed, batch sizes, width or height candidates - anything with a shortlist of values you cycle through.

    This is the plain variant, built around wired inputs (forceInput): you connect six sources, then flip switch to pick which one flows out. If you'd rather type values straight into the node, the separate "Widget" versions are the ones for that.

    Inputs and outputs

    • switch - integer 1 to 6, required. The selector.
    • int1 … int6 - optional, default 0, each up to 999999999999.

    Output: a single INT - the selected value, or 0 if the selected slot has nothing connected. That silent-0 fallback is the main trap: an unconnected slot doesn't error, it just hands downstream a zero.

    Where six slots beat four

    Four presets is fine for A/B-style work, but once you're juggling "SDXL base, SDXL + upscale, Flux, Flux + refiner" style variants, six slots let you keep all the running configurations in one node. Wire your preset values from constant nodes or from the output of the Endless randomizers when you want to freeze a random result into a slot. The node is registered as an output node, so it also executes fine when nothing downstream is attached.

    Installing it

    Ships in Endless 🌊✨ Nodes by tusharbhutt:

    cd ComfyUI/custom_nodes
    git clone https://github.com/tusharbhutt/Endless-Nodes
    # restart ComfyUI
    

    Or ComfyUI Manager β†’ search "Endless". No dependencies or downloads; it appears under the "Endless 🌊✨" menu.

    Gotchas

    Keep switch in range (1-6) and remember unconnected slots return 0 - a 0 in front of a sampler's steps or seed will bite. And the honest caveat: this is a hobby pack, one maintainer, written with AI help and rewritten in June 2025. For a switch this simple the risk is negligible, but if a single switch is all you need, rgthree and similar packs already give you one without adopting the whole Endless ecosystem.

    CategoryEndless 🌊✨/Integer Switches

    Inputs (7)

    NameTypeDefaultDescription
    switchINT11–6β€”
    int1optINT0β€”
    int2optINT0β€”
    int3optINT0β€”
    int4optINT0β€”
    int5optINT0β€”
    int6optINT0β€”

    Outputs (1)

    NameTypeDescription
    INTINTβ€”