ComfyUI Node
endswith
Checks if a string ends with the specified suffix. This node tests whether the input string ends with a particular substring. Returns True if the string ends with the specified suffix, otherwise False. Optional start and end parameters allow you to check only a specific portion of the string.
endswith
- BOOLEAN
◄string►
◄suffix►
◄start0►
◄end0►
CategoryBasic/STRING
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — | |
| suffix | STRING | — | |
| startopt | INT | 0 | — |
| endopt | INT | 0 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| BOOLEAN | BOOLEAN | — |