Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Update nodes_string.py (#8173)

LaVie0243d44a09812c4
diff --git a/comfy_extras/nodes_string.py b/comfy_extras/nodes_string.py
index a852326e5..9eaa71236 100644
--- a/comfy_extras/nodes_string.py
+++ b/comfy_extras/nodes_string.py
@@ -8,7 +8,8 @@ class StringConcatenate():
return {
"required": {
"string_a": (IO.STRING, {"multiline": True}),
- "string_b": (IO.STRING, {"multiline": True})
+ "string_b": (IO.STRING, {"multiline": True}),
+ "delimiter": (IO.STRING, {"multiline": False, "default": ", "})
}
}
@@ -16,8 +17,8 @@ class StringConcatenate():
FUNCTION = "execute"
CATEGORY = "utils/string"
- def execute(self, string_a, string_b, **kwargs):
- return string_a + string_b,
+ def execute(self, string_a, string_b, delimiter, **kwargs):
+ return delimiter.join((string_a, string_b)),
class StringSubstring():
@classmethod