Nodes/ComfyUI-LogicUtils/Convert Combo to String
ComfyUI Node

Convert Combo to String

Turn a dropdown or list value into text

By aria1th·Created 3 years ago·Updated 7 months ago· 116
Convert Combo to String
  • combo
  • STRING
separator$

A small type-plumbing node with a specific job: take a "combo" value - the kind of thing a dropdown selection or a list produces - and turn it into a plain string you can feed to text inputs. In ComfyUI the type of a wire matters, and plenty of nodes emit a selection that a text-expecting node down the line refuses to connect to. This is the adapter that makes the connection work.

The classic case is grabbing a dropdown value - a sampler name, a chosen filename, a picked option - and getting it into your prompt or filename as text. Or you've got a list of items and you want them collapsed into one delimited string. Either way, the mismatch between "a choice/list" and "a string" is what this bridges.

How it works

It accepts a wildcard * input - meaning it'll take basically anything you hand it, which is how it copes with the many shapes a "combo" can arrive in - and renders it to a string. If the input is a list of multiple values, it joins them using your separator. A single value just comes out as its text form.

The inputs that matter

  • combo - the value to convert, on the flexible * input. Wire your dropdown output, list, or selection here.
  • separator (default $) - the character used to join items when the input is a list. The $ default (rather than a comma) is intentional: it avoids clashing with the commas that fill prompts and tag strings. Match it to whatever you'll split on later.

Output is a single STRING, ready for a prompt encoder, a filename builder, a save-text node, or anything else that wants text.

The round-trip

This is the mirror of StringListToCombo in the same pack, which does the reverse - splits a delimited string back into selectable items. Keep the separator the same on both and they compose cleanly: pack a list into a string here, split and index it there. That pairing is the actual point of having both nodes.

Installing ComfyUI-LogicUtils

ComfyUI Manager: Install Custom Nodes → search "ComfyUI-LogicUtils" → install → restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/aria1th/ComfyUI-LogicUtils

Restart ComfyUI. No dependencies.

Worth knowing

The pack is aria1th's (AngelBottomless) undocumented utility set - the kind of type-glue node that exists because someone hit the wall of "these two nodes won't connect" enough times to build the adapter. Nothing to configure beyond the separator; if a downstream text node still won't accept the output, the issue is usually elsewhere in the chain, not here.

CategoryLogic Gates

Inputs (2)

NameTypeDefaultDescription
combo*
separatorSTRING$

Outputs (1)

NameTypeDescription
STRINGSTRING