- clip
- CLIP
- INT
Int is the whole-number member of the Variables for Comfy UI family - it declares a named integer once so you can reference it by name in the pack's text-formatting nodes, instead of that number being buried as a magic value inside a prompt string somewhere.
Why you'd reach for it
Most of the time when you need a number in your prompt text, it's something like a count - "3 apples," "in the style of the 1990s," a seed you're documenting in a caption, a batch index you're templating into a filename-ish string. If that number needs to show up in more than one place, or you're building a prompt template with Format Text and want a clean numeric slot rather than fishing it out of a string, Int is the node for it. It's a small thing, but it's the difference between a prompt template you can actually reuse and one you have to rewrite by hand every time a number changes.
How it actually works
Like the rest of the variable nodes in this pack, Int is wired inline on your CLIP connection rather than sitting off by itself. Route your checkpoint's CLIP output through it before it reaches your CLIP Text Encode nodes. ComfyUI executes backward from your output nodes, pulling in only what they actually depend on - so a variable node with nothing downstream simply never runs. Chaining it through the CLIP wire is what guarantees it fires before anything that needs the value it sets.
Inputs and outputs
- variable - the name you'll reference it by later, e.g.
countorseed_label. Single line. - value - the integer itself.
- clip - your CLIP passthrough. Plug it in; this is what forces the node to execute.
Outputs are CLIP (unchanged, keep chaining) and INT (the value, if you want to feed it directly into something that expects a raw integer, rather than through a text placeholder).
Installing it
Through ComfyUI Manager, search "Variables for Comfy UI." Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/yolanother/DTAIComfyVariables
Restart ComfyUI afterward. The README's dependency list is just ComfyUI itself - no extra packages, no models to download. It's a pure graph-logic pack.
Common issues
It won't fire if it's not in the CLIP chain. This is the single most common trap with every node in this pack: if you don't route CLIP through it (or you leave the CLIP input unconnected), ComfyUI has no reason to execute the node, and whatever placeholder was supposed to pick up its value stays literal text in your output.
Type confusion in text templates. If you're feeding this INT into Format Text's autogrow value list to fill a {count} placeholder, remember the template itself is just text - Python's .format() will happily stringify the integer for you, but if you were expecting it wired somewhere that needs an actual INT socket downstream, use the raw INT output instead of routing it through a string template.
Name collisions with other variable nodes. The README frames these as "shared global variables" - that's a real, flat namespace across your whole graph. Two nodes (even of different types, like an Int and a String) reusing the same variable name is asking for one to quietly clobber the other depending on execution order. Keep names unique and specific.
Not much to Google if you get stuck. This is a small, low-traffic pack - one solo maintainer, thin GitHub issue history, barely any Reddit chatter. If something doesn't behave as expected, reading the node's own source is often faster than searching for someone else who hit the same thing.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| variable | STRING | — | |
| value | INT | — | |
| clip | CLIP | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| CLIP | CLIP | — |
| INT | INT | — |