Nodes/ComfyUI-Switchboard/Value on Boolean
ComfyUI Node

Value on Boolean

Pick value_if_true or value_if_false based on a boolean. The chosen number is returned as FLOAT/INT/STRING; the boolean passes through.

By Oratorian·Created 2 months ago·Updated 2 months ago· 4
Value on Boolean
    • float
    • int
    • string
    • boolean
    booleantrue
    value_if_true1.00
    value_if_false0.00
    Category🎛️ Switchboard

    Inputs (3)

    NameTypeDefaultDescription
    booleanBOOLEANtrue
    value_if_trueFLOAT1.00-1000000000–1000000000
    value_if_falseFLOAT0.00-1000000000–1000000000

    Outputs (4)

    NameTypeDescription
    floatFLOAT
    intINT
    stringSTRING
    booleanBOOLEAN