Nodes/MD Nodes/MD: String Logic (Router)
ComfyUI Node

MD: String Logic (Router)

A ComfyUI node in MD_Nodes/Logic with 6 inputs and 4 outputs.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: String Logic (Router)
    • result_bool
    • processed_string
    • uppercase
    • lowercase
    input_string
    match_string
    operationContains
    match_modeAny (OR)
    case_sensitivefalse
    seed0
    CategoryMD_Nodes/Logic

    Inputs (6)

    NameTypeDefaultDescription
    input_stringSTRINGTEXT TO ANALYZE • Purpose: The primary source text you want to check. • Support: Resolves {A|B} wildcard syntax.
    match_stringSTRINGPATTERN(S) • Purpose: The specific word or regex you are looking for. • Note: Separate multiple target words with commas.
    operationCOMBOContainsLOGIC OPERATION • Purpose: How to evaluate the match. • Note: Regex Match allows advanced patterns (e.g. ^\d+).
    match_modeCOMBOAny (OR)MULTI-PATTERN LOGIC • Purpose: Determines routing if multiple comma-separated patterns are provided. • Any (OR): True if at least ONE matches. • All (AND): True only if ALL match.
    case_sensitiveBOOLEANfalseCASE SENSITIVE • If False, 'Drum' is equal to 'drum'.
    seedINT00–9007199254740991SEED • Determines the random choice if wildcards {A|B} are used in the text.

    Outputs (4)

    NameTypeDescription
    result_boolBOOLEAN
    processed_stringSTRING
    uppercaseSTRING
    lowercaseSTRING