String Input
Just a Text Box — and That's Exactly the Point
- STRING
Let's be honest up front: this node is a multiline text box that hands whatever you type to whatever's downstream. No API, no key, no weights, no math. The whole encode() function is one return (text,). So why is it in a pack called Batch-Condition, and why would you bother?
Because ComfyUI's built-in string handling is fiddly, and this is the cleanest "one prompt, many consumers" box in the pack. Wire the same String Input into several nodes - a prompt text, a filename prefix, a caption - and you get one place to edit instead of hunting through widgets. That single-source-of-truth pattern is the actual job this node does, and it's genuinely handy in a workflow you reuse.
It lives in the conditioning_batch menu folder next to its two siblings. In this pack's mental model, String Input is the "scalar" end: one string out. The list end (a BATCH_STRING) is handled by the Batch String node, and the node that eats lists is CLIP Text Encode (Batch).
The one input, the one output. You set exactly one thing: text, a multiline STRING field. It outputs a single STRING. That's the whole schema, no hidden knobs.
Where people get burned: expecting this to feed CLIP Text Encode (Batch) directly. It can't - that node demands a BATCH_STRING (a list of strings), and String Input outputs one plain string. Single strings go into a regular CLIP Text Encode node, or anywhere a plain STRING port accepts one. It's the single most confusing wiring mismatch in this pack, so now you'll never stare at a red connection wondering why.
A few honest caveats. It's a widget node, so it does nothing until something reads it - a lone String Input in your graph just sits there, which is fine, that's how lazy strings work. There's no default value that persists as "your prompt"; the node starts empty. And don't expect updates: this pack was last touched in March 2024, but it's tiny, dependency-free, and still works fine on current ComfyUI - a frozen utility is a reliable utility.
Install. Same as the whole pack - via ComfyUI Manager, search "Batch-Condition-ComfyUI" and install, then restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/laksjdjf/Batch-Condition-ComfyUI
# restart ComfyUI
There's no requirements.txt and no model download - the pack only imports torch. The author, laksjdjf, is the same person behind the regional-conditioning Attention Couple nodes, so you're getting the workflow of someone who thinks hard about conditioning. This node is the boring part of that toolkit, and boring is what you want from a text box.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |