ComfyUI Node

4 Bools

Four toggles into one boolean list

By mirabarukaso·Created 2 years ago·Updated 5 days ago· 206
4 Bools
    • bool_list
    bool_1false
    bool_2false
    bool_3false
    bool_4false

    4 Bools is four on/off toggles on a single node that come out the other side as one boolean list. It's the boolean cousin of Mira's "4 Floats" - a grouping node - for when a downstream node wants a set of true/false flags rather than four separate wires. Set your four switches, run one wire.

    Where does that come up? In mirabarukaso's own ComfyUI_Mira workflows, a bunch of nodes take a list of booleans as a control: think the corner toggles on a watermark-removal mask, or the per-item flags a list-interpreter node reads to decide what's on. Rather than plug four individual booleans into four sockets, you bundle them here and hand over one tidy list. It's part of the pack's Logic family, and like most of Mira it's built to make the author's regional-conditioning and character-select graphs less of a wire nest.

    How it works

    Four boolean widgets, each True or False, collected into a single ordered BOOLEAN_LIST output. No logic is applied - it doesn't AND them or count them, it just groups them in order. The position of each toggle matters, because whatever reads the list will interpret entry 1, 2, 3, 4 by position.

    The inputs and outputs that matter

    • bool_1, bool_2, bool_3, bool_4 - four toggles, each defaulting to False.
    • bool_list (output) - a single BOOLEAN_LIST carrying all four, wired into whatever consumes a boolean list.

    That's the whole node. If you need to invert one of these, that's the Not node's job; if you need to flip whole logic branches, look at Function Swap.

    Installing it

    ComfyUI Manager: search ComfyUI_Mira, install, restart. Or clone:

    cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git
    

    then restart. If it errors on load, run pip install -r requirements.txt in the ComfyUI_Mira folder. Node appears under Mira/Logic.

    Common issues

    • A list isn't a single boolean. You can't wire this into a plain BOOLEAN input - it carries four. The receiving node has to accept a boolean list. If you only need one true/false, don't use this node.
    • Order is positional. The consuming node reads by index. If a flag seems to control the wrong thing, your toggles are probably in the wrong order.
    • It's for list-consuming nodes. This exists specifically to feed nodes designed around a boolean list. Outside that context - most standard ComfyUI nodes want individual booleans - you won't have anything to plug it into.
    • Personal-pack caveat. Mira is one developer's grab-bag and node names and placement have drifted between updates; if an old workflow shows this node red, reinstall or update through Manager and it'll reconnect. The grouping behavior itself is simple enough that it's unlikely to change under you.
    CategoryMira/Logic

    Inputs (4)

    NameTypeDefaultDescription
    bool_1BOOLEANfalse
    bool_2BOOLEANfalse
    bool_3BOOLEANfalse
    bool_4BOOLEANfalse

    Outputs (1)

    NameTypeDescription
    bool_listBOOLEAN_LIST