ComfyUI Node

String Compare

A ComfyUI node in nifty/logic with 5 inputs and 1 output.

By Stibo·Created 5 months ago·Updated 2 months ago· 7
String Compare
    • BOOLEAN
    string
    match
    comparison
    case_sensitivefalse
    negatefalse
    Categorynifty/logic

    Inputs (5)

    NameTypeDefaultDescription
    stringSTRINGThe string to test.
    matchSTRINGThe value to compare against. An empty match always returns False.
    comparisonCOMBOComparison mode: exact = full equality, contains = substring search, starts/ends with = prefix/suffix, regex = regular expression.
    case_sensitiveBOOLEANfalseWhen enabled, the comparison is case-sensitive. Default is case-insensitive.
    negateBOOLEANfalseInvert the result — True becomes False and vice versa.

    Outputs (1)

    NameTypeDescription
    BOOLEANBOOLEAN