Nodes/Comfy UI Text List Product/Text List Product With Single B
ComfyUI Node

Text List Product With Single B

The standalone B items you keep forgetting to write

By opvelll·Created 2 years ago·Updated about 22 hours ago· 1
Text List Product With Single B
  • list_a
  • list_b
  • list
separator,
max_results0

The mirror image of TextListProductWithSingleA. Where that node keeps list A's items standalone, this one keeps list B's. Same trick, flipped: it's TextListProduct with an empty string prepended to list_a, and since the pack strips empty strings from every combination, each B item comes out as its own prompt alongside the full pairs.

With list_a = ["1girl", "1boy"] and list_b = ["beach", "city"] you get:

beach
city
1girl, beach
1girl, city
1boy, beach
1boy, city

Note the ordering: every B item lands first as a standalone, then the pairs. If you're feeding the LIST into a batch, that sequence is what you get - B entries first.

Inputs and outputs

Identical to TextListProduct: separator (default ", "), max_results (0 = unlimited), list_a and list_b (forced LIST inputs), and one LIST output. max_results caps the total including the standalone lines, which is the difference between a tidy 8 and a runaway 12.

When to reach for it

Whenever the B side is worth generating by itself. Locations and lighting are the usual suspects - you want "just the beach" as well as "the character at the beach", or "golden hour" alone alongside "1girl, golden hour". If it's the A side that stands alone, use TextListProductWithSingleA instead; if both lists do, TextListProductWithSingleBoth is the permissive middle ground.

Pack-wide gotchas still apply: the LIST inputs are forced, so connect a list-producing node (this pack's MultilineStringToList or StringsToList work) and remember max_results = 0 means unlimited, not zero.

Install

ComfyUI Manager → Install Custom Nodes → search "Comfy UI Text List Product", or by hand:

cd ComfyUI/custom_nodes
git clone https://github.com/opvelll/ComfyUI_TextListProduct

Restart ComfyUI. No dependencies, no model files - pure stdlib Python.

CategoryTextListProduct

Inputs (4)

NameTypeDefaultDescription
separatorSTRING,
max_resultsINT0
list_aLIST
list_bLIST

Outputs (1)

NameTypeDescription
listLIST