removesuffix

Basic data handling: StringRemovesuffix

Removes suffix from the string if present. This node returns a copy of the string with the specified suffix removed if the string ends with that suffix, otherwise returns the original string.

Pack: Basic data handling

custom_nodes.ComfyUI-basic_data_handling

Inputs (2)

NameTypeRequired
stringSTRINGrequired
suffixSTRINGrequired

Outputs (1)

NameType
STRINGSTRING