ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Improve logic for concatenate node + add wildcard node

Open LaVie024 opened this issue 5 months ago • 4 comments

One thing I severely overlooked with implementing the current logic for the delimiter is that it still applies if either string_a or string_b are null. This logic effectively fixes that, and also enables great flexibility. 2025-05-31_17-36

Secondly, I would like to introduce the Wildcard node, also to be added as a string node. It is not really based on any current custom node implementations for Comfy, rather it is meant to be much simpler in practice. The rudimentary idea of it is simple: take a string, turn it into a list based on a given separator (by default we just use newline), and randomly select an index. 2025-05-31_17-44

This of course, is not meant to be the "best" implementation but it is a very simple implementation, and just gives a straight string output, making it useful for prompts and such. Could possibly be made more useful if a Load String node were to exist or if a Load String node from a custom node suite is used as the text input for the Wildcard node.

LaVie024 avatar May 31 '25 21:05 LaVie024