Skip to content

Commit 3d44a09

Browse files
authored
Update nodes_string.py (#8173)
1 parent 62690ed commit 3d44a09

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

comfy_extras/nodes_string.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,17 @@ def INPUT_TYPES(s):
88
return {
99
"required": {
1010
"string_a": (IO.STRING, {"multiline": True}),
11-
"string_b": (IO.STRING, {"multiline": True})
11+
"string_b": (IO.STRING, {"multiline": True}),
12+
"delimiter": (IO.STRING, {"multiline": False, "default": ", "})
1213
}
1314
}
1415

1516
RETURN_TYPES = (IO.STRING,)
1617
FUNCTION = "execute"
1718
CATEGORY = "utils/string"
1819

19-
def execute(self, string_a, string_b, **kwargs):
20-
return string_a + string_b,
20+
def execute(self, string_a, string_b, delimiter, **kwargs):
21+
return delimiter.join((string_a, string_b)),
2122

2223
class StringSubstring():
2324
@classmethod

0 commit comments

Comments
 (0)