This commit is contained in:
justumen
2024-09-16 10:36:11 +02:00
parent a3f930d8c6
commit 5f47d20f75
12 changed files with 176 additions and 9 deletions

View File

@@ -4,7 +4,7 @@ class CombineTexts:
return {
"required": {
"number_of_inputs": ("INT", {"default": 2, "min": 2, "max": 50, "step": 1}),
"delimiter": (["newline", "comma", "space", "slash"], {"default": "newline"}),
"delimiter": (["newline", "comma", "space", "slash", "nothing"], {"default": "newline"}),
"text_1": ("STRING", {"forceInput": True}),
"text_2": ("STRING", {"forceInput": True}),
},
@@ -44,5 +44,7 @@ class CombineTexts:
return " "
elif delimiter == "slash":
return "/"
elif delimiter == "nothing":
return ""
else:
return "\n"