ComfyUI Node
MD: String Logic (Router)
A ComfyUI node in MD_Nodes/Logic with 6 inputs and 4 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| input_string | STRING | TEXT TO ANALYZE • Purpose: The primary source text you want to check. • Support: Resolves {A|B} wildcard syntax. | |
| match_string | STRING | PATTERN(S) • Purpose: The specific word or regex you are looking for. • Note: Separate multiple target words with commas. | |
| operation | COMBO | Contains | LOGIC OPERATION • Purpose: How to evaluate the match. • Note: Regex Match allows advanced patterns (e.g. ^\d+). |
| match_mode | COMBO | Any (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_sensitive | BOOLEAN | false | CASE SENSITIVE • If False, 'Drum' is equal to 'drum'. |
| seed | INT | 00–9007199254740991 | SEED • Determines the random choice if wildcards {A|B} are used in the text. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| result_bool | BOOLEAN | — |
| processed_string | STRING | — |
| uppercase | STRING | — |
| lowercase | STRING | — |