ComfyUI Node
String Compare
A ComfyUI node in nifty/logic with 5 inputs and 1 output.
String Compare
- BOOLEAN
◄string—►
◄match►
◄comparison▾►
◄case_sensitivefalse►
◄negatefalse►
Categorynifty/logic
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | The string to test. | |
| match | STRING | The value to compare against. An empty match always returns False. | |
| comparison | COMBO | Comparison mode: exact = full equality, contains = substring search, starts/ends with = prefix/suffix, regex = regular expression. | |
| case_sensitive | BOOLEAN | false | When enabled, the comparison is case-sensitive. Default is case-insensitive. |
| negate | BOOLEAN | false | Invert the result — True becomes False and vice versa. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |