ComfyUI Node
string compare
Compares two strings using a selected comparison operator. This node takes two string inputs and a comparison operator, and returns a boolean result based on the selected comparison.
string compare
- result
◄string1►
◄string2►
◄operator==►
◄case_sensitivetrue►
CategoryBasic/comparison
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| string1 | STRING | — | |
| string2 | STRING | — | |
| operator | COMBO | == | 6 options: ==, !=, >, <, >=, <= |
| case_sensitive | BOOLEAN | true | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| result | BOOLEAN | — |