Files
daxcay-ComfyUI-JDCN/classes/JDCN_BoolInt.py
T

28 lines
580 B
Python

class JDCN_BoolInt:
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"Boolean": ("BOOLEAN", {"default": False}),
},
}
RETURN_TYPES = ("BOOLEAN", "INTEGER",)
RETURN_NAMES = ("boolean", "int",)
FUNCTION = "checkit"
CATEGORY = "🔵 JDCN 🔵"
def checkit(self, Boolean):
if Boolean:
return (True,1,)
else:
return (False,0,)
N_CLASS_MAPPINGS = {
"JDCN_BoolInt": JDCN_BoolInt,
}
N_DISPLAY_NAME_MAPPINGS = {
"JDCN_BoolInt": "JDCN_BoolInt",
}