Text not empty [darkilNodes]
True when your text actually has content
- BOOLEAN
The sibling of this pack's Text is empty node, flipped: feed it a string and it returns True when there's real content, False when the text is empty - where "empty" means whitespace-only or punctuation-only strings too. It's the one you actually wire into your positive-prompt path, because "is my prompt non-empty" is a much more useful question for a gate than the inverted version.
How it works
It shares the exact same emptiness test as its sibling: a string is empty if stripping spaces, newlines, tabs, carriage returns and semicolons leaves nothing. Then it returns the negation. So "" → False, " " → False, "cat" → True. Non-string input counts as non-empty, which keeps numeric inputs from silently failing the gate.
The output is a single BOOLEAN. It's a predicate node: wire it into a conditional switch, a logic gate, or an any-switch that routes the workflow based on whether a prompt fragment or tag actually materialized upstream.
Where it shines
Batch and loop workflows eat this node alive. When you're iterating over a list of prompts or tags, some entries will come up empty by design, and you want the graph to skip them rather than feed a blank string into a text encoder. Text not empty wired into a switch that bypasses the encode on False is a one-node solution to that whole class of problem. It also pairs naturally with the pack's variable builders - if a builder resolves to nothing because a variable wasn't defined, this gate catches it before it pollutes your prompt.
Where people get burned
Same caveats as the sibling node, so they're worth saying once: the semicolon rule means a string of pure punctuation reads as empty - fine for the pack's own name=value syntax, surprising if you're testing raw CSV-ish text. And the output is a boolean value; you still need a switch or conditional to act on it. Don't expect it to auto-bypass nodes on its own.
Installing
Part of pytraveler/comfyui-darkil-nodes. ComfyUI Manager search ComfyUI-darkil-nodes, or:
cd ComfyUI/custom_nodes
git clone https://github.com/pytraveler/comfyui-darkil-nodes
Restart ComfyUI. No Python deps, no models - a pure text predicate, like its sibling.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |