1 Bool from List
Pull one boolean out
- bool_list
- bool
If 8 Bools is how you pack a bunch of toggles into one wire, this is how you get one back out. 1 Bool from List takes a BOOLEAN_LIST and hands you a single boolean at the index you pick. It's the smallest of Mira's Boolean List Interpreter family - the one you use when you only need to tap one switch out of a bundle.
It's a Logic node in ComfyUI_Mira, mirabarukaso's utility pack, and it's half of a pair. Something upstream (8 Bools, or Even or Odd List, or any node emitting a boolean list) produces the list; this node reads one entry from it. That's the whole design pattern: bundle the decisions, carry them on one wire, unpack the specific one you need at the point of use. Keeps large graphs readable.
How it works
You give it a list and a starting index. It returns the boolean at that index. The extra twist is NOT_Mode: turn it on and the node inverts the value on the way out, so a True in the list becomes False at the output. That's convenient when the same list needs to drive two things that want opposite polarity - feed one consumer the plain value and another the inverted one, without an extra Logic NOT node in between.
Inputs and outputs that matter
bool_list- theBOOLEAN_LISTto read from, typically from 8 Bools or Even or Odd List.Start_At_Index- which entry to return. Zero-based, so index 0 is the first element (bool_1if the list came from 8 Bools).NOT_Mode- off returns the value as-is; on inverts it.
The output is a single bool (BOOLEAN) you can wire into any node that gates on a boolean - a switch, a bypass toggle, a function selector.
Installing it
Via ComfyUI Manager: search ComfyUI_Mira in the Custom Nodes Manager, Install, restart. Manually: cd ComfyUI/custom_nodes && git clone https://github.com/mirabarukaso/ComfyUI_Mira.git, then restart ComfyUI. If loading errors, run pip install -r requirements.txt in the pack folder and restart. No model downloads.
Common issues
The predictable one is an index that points past the end of the list - if your bundle has 8 entries (indices 0-7) and you ask for index 8, there's nothing there. Keep Start_At_Index within the length of the list you're feeding it.
The other is polarity confusion: if a gate is firing exactly backwards from what you intend, check whether NOT_Mode is on. It's an easy thing to leave flipped. And remember the index is zero-based while 8 Bools labels its switches bool_1 upward, so bool_1 lives at index 0 - the classic off-by-one. If you only ever need one boolean, this node is all you need; if you're pulling several contiguous entries, the 4- and 8-output interpreters save you from stacking multiple copies of this one.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| bool_list | BOOLEAN_LIST | — | |
| Start_At_Index | INT | 0 | — |
| NOT_Mode | BOOLEAN | false | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| bool | BOOLEAN | — |