ComfyUI Node
h4 - Switcheroo
A ComfyUI node in h4_Live/Logic with 26 inputs and 3 outputs.
h4 - Switcheroo
- subject
- clip
- data
- string
- conditioning
◄swap_count1►
◄case_sensitivefalse►
◄regex_modefalse►
◄strip_whitespacetrue►
◄find_1►
◄replace_1►
◄find_2►
◄replace_2►
◄find_3►
◄replace_3►
◄find_4►
◄replace_4►
◄find_5►
◄replace_5►
◄find_6►
◄replace_6►
◄find_7►
◄replace_7►
◄find_8►
◄replace_8►
◄find_9►
◄replace_9►
◄find_10►
◄replace_10►
Categoryh4_Live/Logic
Inputs (26)
| Name | Type | Default | Description |
|---|---|---|---|
| subject | * | The text, JSON, or data container you want to perform swaps on. | |
| swap_count | INT | 10–10 | How many find/replace operations to perform. |
| clipopt | CLIP | Optional: Connect a CLIP model to enable automatic re-encoding if the subject is a prompt. | |
| case_sensitiveopt | BOOLEAN | false | If ON, 'News' and 'news' are treated as different words. |
| regex_modeopt | BOOLEAN | false | If ON, you can use regular expressions (e.g., 'mid-.*') in the FIND boxes. |
| strip_whitespaceopt | BOOLEAN | true | If ON, accidental spaces at the start/end of your entries are ignored. |
| find_1opt | STRING | Target string for swap #1. | |
| replace_1opt | STRING | Replacement string for swap #1. | |
| find_2opt | STRING | Target string for swap #2. | |
| replace_2opt | STRING | Replacement string for swap #2. | |
| find_3opt | STRING | Target string for swap #3. | |
| replace_3opt | STRING | Replacement string for swap #3. | |
| find_4opt | STRING | Target string for swap #4. | |
| replace_4opt | STRING | Replacement string for swap #4. | |
| find_5opt | STRING | Target string for swap #5. | |
| replace_5opt | STRING | Replacement string for swap #5. | |
| find_6opt | STRING | Target string for swap #6. | |
| replace_6opt | STRING | Replacement string for swap #6. | |
| find_7opt | STRING | Target string for swap #7. | |
| replace_7opt | STRING | Replacement string for swap #7. | |
| find_8opt | STRING | Target string for swap #8. | |
| replace_8opt | STRING | Replacement string for swap #8. | |
| find_9opt | STRING | Target string for swap #9. | |
| replace_9opt | STRING | Replacement string for swap #9. | |
| find_10opt | STRING | Target string for swap #10. | |
| replace_10opt | STRING | Replacement string for swap #10. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| data | * | — |
| string | STRING | — |
| conditioning | CONDITIONING | — |