LogicUtil_Static String
A text constant you can reuse across the graph without retyping it
- STRING
LogicUtil_Static String is the text version of a sticky note: you type a string once, it holds it, and every node you wire it into reads the same value. One string input, one STRING output, nothing else. It's part of the LogicUtil subpack of ComfyUI-JDCN, and it exists for the most boring and most defensible reason in the ecosystem - so you don't have to retype the same text in six places.
Why you'd reach for it
ComfyUI is full of places where text gets typed and retyped: a negative prompt shared across two CLIP encoders, a filename prefix used by several save nodes, a style tag you always append, a seed label you want in every run's metadata. Every one of those is a widget you can update and a place to introduce a typo. Wire them all from one LogicUtil_Static String and the value lives in exactly one spot.
It's the same single-source-of-truth habit the community applies to seeds - fix the variable, change one thing at a time, compare. When a string is deliberately constant, making it visibly constant in a labeled node saves you from the "wait, did I update the negative prompt everywhere?" panic.
It also feeds naturally into the pack's other nodes. Drop the output into LogicUtil_String List to Combo or a random choice node and it behaves like any other string - which is useful when you want a fixed prefix followed by a varying suffix, a pattern that shows up constantly in prompt experimentation.
The one input that matters
Just string, defaulting to empty. Type your text, wire the STRING output anywhere text is accepted. A couple of honest notes:
- The default empty string is an easy trap - a static node you haven't filled in quietly passes an empty string around. If something downstream is mysteriously blank, check your Static String nodes first.
- It's a constant, not a variable. No memory, no per-run changes. If you want text that cycles or randomizes, the pack's random-choice and iterator nodes are the companions for that.
Installing it
It ships in ComfyUI-JDCN, so one install gets the whole pack. ComfyUI Manager: Install Custom Nodes → search "JDCN", install, restart. Or manually:
cd ComfyUI/custom_nodes
git clone https://github.com/daxcay/ComfyUI-JDCN.git
cd ComfyUI-JDCN
pip install -r requirements.txt
Dependencies are minimal - piexif is the only requirement, no models to download. The pack is a small two-person effort (Daxton Caylor and Jerry Davos) aimed at practical, unglamorous workflow utilities, and this node is the unglamorous part of that in a pure form. Nothing to learn, nothing to configure beyond the string itself. If you've got a workflow with a phrase you've typed more than twice, this node will quietly save you from the third time.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |