22 lines
475 B
Python
22 lines
475 B
Python
class StringEmptyJudgement:
|
|
@classmethod
|
|
def INPUT_TYPES(s):
|
|
return {
|
|
"required": {
|
|
"input": ("STRING", {"forceInput": True}),
|
|
},
|
|
}
|
|
|
|
RETURN_TYPES = ("BOOLEAN", )
|
|
RETURN_NAMES = ("是否为空", )
|
|
|
|
FUNCTION = "compute"
|
|
|
|
CATEGORY = "不忘科技-自定义节点🚩"
|
|
|
|
def compute(self, input):
|
|
if len(input) == 0:
|
|
return (True, )
|
|
else:
|
|
return (False, )
|