Axis To BOOLEAN
Grid rows that flip an option on and off
- axis
- BOOLEAN
Axis To BOOLEAN is one of the pack's Axis To X converters: it takes the AXIS_VALUE output from XY Grid Helper and re-declares it as a BOOLEAN so you can wire it into a node that takes true/false. In a grid, that means a row or column that toggles something - "refiner on/off", "highres pass yes/no", "upscale this cell or not" - instead of sweeping a continuous value.
It's a thin node - input axis, output BOOLEAN - and it's generated from the pack's axis config, the same mechanism that produces Axis To STRING, FLOAT, INT, MODEL, and the rest. Thin doesn't mean useless: without it, ComfyUI flat-out refuses to connect the grid's unknown-type output to a boolean input, because the graph doesn't trust unknown types.
The one thing that actually trips people up
A grid is just a list of values. For a boolean sweep to work, the values in your list have to be actual Python booleans - True and False - not the strings "true" and "false". If you build your list with Text Splitter, you get strings, and this converter will pass "true" through as a string; the downstream node will do whatever it does with a truthy string (usually treat it as on) and the "off" cell becomes "false", which is also truthy. Result: both cells on. Silent, and maddening.
The reliable way to build a boolean axis is with Any List feeding actual True/False values, or an axis of 0/1 integers with a converter to boolean - anything that keeps the value a real boolean at the source.
When you'd reach for it
- A/B toggles in a sweep. Same prompt, refiner on vs off, in one grid.
- Feature combos. Toggle one option on the row axis and sweep CFG on the column axis.
Honestly, boolean axes are the least used of the pack's converter types - most grid work is floats and models. But when you need a clean on/off column, this is the one.
The family note
If you've also seen "Axis To BOOLEAN" vs a lowercase variant elsewhere, it's the same node - the pack registers the generated converters under their config names, and directory listings have caught the casing both ways over time. The current pack ships Axis To BOOLEAN from axis-config.json.
Installing it
Part of qq-nodes-comfyui:
cd ComfyUI/custom_nodes
git clone https://github.com/kenjiqq/qq-nodes-comfyui
Restart, or install qq-nodes-comfyui via ComfyUI Manager. Found under QQNodes/XYGrid Axis.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| axis | AXIS_VALUE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |