STRING TO ARRAY
Turn a multiline text box into a real array
- ARRAY
A small conversion node with an obvious job: you type text into a multiline box, it hands you back an ARRAY. It's one of the "Primitive > Conversion" family in JNComfy (jn-jairo/jn_comfyui) - the pack's way of moving values between its own type system (STRING, ARRAY, BOOLEAN, and so on) so the rest of the pack's utility nodes (math, logic, loops built from Flow nodes) have something structured to work on.
Why you'd reach for it
Most of ComfyUI's native inputs are single values or single strings - there's no first-class "list of things typed out by hand" widget. If you want to feed a batch of prompts, a list of filenames, or any set of short strings into something that expects an array-shaped input (this pack's own array-processing nodes, for instance), you need a way to get from "text I typed" to "a real array." This node is exactly that bridge - a text box in, a structured array out.
How it works
The single input is a multiline STRING field, which the node splits and hands back as an ARRAY. There's no separator parameter exposed in the node's schema, so what you get depends on the node's own parsing logic rather than a delimiter you configure - the practical way to find out what convention it uses is to type a couple of test lines, wire the output into JN_TensorInfo or JN_DumpOutput, and look at what comes out before you build anything real on top of it.
The inputs and outputs that matter
value(STRING, multiline, default empty) - your text box. This is the only input, and the only thing you set.
Output is ARRAY - feed it into any other node in this pack that expects an array-typed input, like the primitive process nodes or a loader that iterates over a list.
How to install it
Via ComfyUI Manager: search "JNComfy", install, restart. Manually:
cd ComfyUI/custom_nodes
git clone https://github.com/jn-jairo/jn_comfyui
then restart ComfyUI. This is a small personal-toolbox pack from a single dev - no community threads about it anywhere we could find, no entry in our knowledge base - so if the exact splitting behavior matters to you, the fastest way to be sure is to test it directly rather than guess from the name.
Common issues & troubleshooting
Not sure if it's splitting by line, comma, or something else. Don't guess - wire the ARRAY output into JN_TensorInfo or JN_DumpOutput and run the graph once with a short, obviously-distinguishable test string (a few short words each on their own visual token) so you can read exactly what boundary it used.
Empty entries showing up in the array. If your text has blank lines or trailing whitespace, those can end up as elements too depending on the parsing - clean up the input text (no stray blank lines at the start/end) if you're getting more array entries than you expect.
You actually wanted the reverse - an array back into a string. This node only goes one direction (string → array). For the opposite, or for converting to other primitive types, look at the sibling nodes in the same "Primitive > Conversion" category of the pack - it also ships batch-to-array, generic to-array, and to-boolean/float/int/string converters.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| value | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| ARRAY | ARRAY | — |