mirror of
https://git.datalinker.icu/kijai/ComfyUI-KJNodes.git
synced 2026-05-04 09:13:34 +08:00
Change JoinStrings inputs to optional
This commit is contained in:
parent
fca4aa2a15
commit
730edb08c1
@ -248,16 +248,18 @@ class JoinStrings:
|
|||||||
def INPUT_TYPES(cls):
|
def INPUT_TYPES(cls):
|
||||||
return {
|
return {
|
||||||
"required": {
|
"required": {
|
||||||
|
"delimiter": ("STRING", {"default": ' ', "multiline": False}),
|
||||||
|
},
|
||||||
|
"optional": {
|
||||||
"string1": ("STRING", {"default": '', "forceInput": True}),
|
"string1": ("STRING", {"default": '', "forceInput": True}),
|
||||||
"string2": ("STRING", {"default": '', "forceInput": True}),
|
"string2": ("STRING", {"default": '', "forceInput": True}),
|
||||||
"delimiter": ("STRING", {"default": ' ', "multiline": False}),
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
RETURN_TYPES = ("STRING",)
|
RETURN_TYPES = ("STRING",)
|
||||||
FUNCTION = "joinstring"
|
FUNCTION = "joinstring"
|
||||||
CATEGORY = "KJNodes/text"
|
CATEGORY = "KJNodes/text"
|
||||||
|
|
||||||
def joinstring(self, string1, string2, delimiter):
|
def joinstring(self, delimiter, string1="", string2=""):
|
||||||
joined_string = string1 + delimiter + string2
|
joined_string = string1 + delimiter + string2
|
||||||
return (joined_string, )
|
return (joined_string, )
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user