Nodes/ComfyUI-EnumCombo/Enum Combo Advanced
ComfyUI Node

Enum Combo Advanced

Advanced workflow-local enum selector. Supports NAME and NAME = integer lines, with #, //, and /* */ comments.

By SparknightLLC·Created 4 months ago·Updated 3 months ago· 3
Enum Combo Advanced
    • value
    • name
    • index
    • count
    choiceOPTION_A
    start0
    stricttrue
    enum_definitionOPTION_A OPTION_B
    Categoryutils/enum

    Inputs (4)

    NameTypeDefaultDescription
    choiceCOMBOOPTION_AThe enum member to select. The dropdown updates from enum_definition.
    startINT0-18446744073709550000–18446744073709550000The integer value used for the first unassigned member.
    strictBOOLEANtrueIf enabled, execution errors when the saved choice is not present in enum_definition.
    enum_definitionSTRINGOPTION_A OPTION_BOne enum member per line. Use NAME or NAME = integer. Unassigned values auto-increment from start or the previous explicit value. Quote labels that contain spaces. Supports #, //, and /* */ comments.

    Outputs (4)

    NameTypeDescription
    valueINTINT: The selected enum member's integer value.
    nameSTRINGSTRING: The selected enum member's name.
    indexINTINT: The selected enum member's zero-based position in the definition.
    countINTINT: The number of enum members in the definition.