Nodes/ComfyUI Ino Nodes/Ino String Toggle Case
ComfyUI Node

Ino String Toggle Case

The one switch that flips your whole prompt to SHOUTING

By nobandegani·Created about a year ago·Updated 2 months ago· 6
Ino String Toggle Case
    • string
    enabledtrue
    input_stringTest String
    toggle_totrue

    Sometimes you just need everything uppercased or lowercased - a filename convention, a tag list, a prompt you want to normalize before it hits the encoder. Ino String Toggle Case is the node for exactly that: one toggle for upper/lower, one toggle to turn the whole thing off. It's the simplest node in the pack's string family, and it's fine being simple.

    It ships in ComfyUI Ino Nodes (nobandegani/ComfyUI-InoNodes).

    The inputs

    • enabled - the master toggle, on by default. Flip it off and the node passes your string through untouched.
    • input_string - the text to convert. Multiline, so a whole prompt block works.
    • toggle_to - the direction. On means Upper, off means Lower (the dropdown labels make this obvious: Upper / Lower).

    One output, string, the converted text. Under the hood it's plain Python .upper() / .lower(), so it handles the whole string at once, including non-ASCII letters.

    Where it fits

    Honestly, this is a utility you'll reach for in two situations: standardizing text for comparisons downstream (case-sensitive checks elsewhere in the pack behave better when everything arrives in one case), and cosmetic normalization of filenames or display strings. It's also a decent teaching node - if you're wiring up toggles for the first time, this shows how the pack's enabled-gated nodes behave: disabled means passthrough, not failure, which is the pattern across the rest of the pack.

    There's a real sibling-distinction moment here: if your strings need to be trimmed of whitespace, that's Ino String Trim; if you need case-insensitive comparison, that's a contains/equals node's job, not this one. Toggle Case just flips the case. That's the whole deal.

    Install

    # ComfyUI Manager: search "ComfyUI Ino Nodes", install, restart
    # or manually:
    cd ComfyUI/custom_nodes
    git clone https://github.com/nobandegani/ComfyUI-InoNodes.git
    cd ComfyUI-InoNodes
    pip install -r requirements.txt
    

    Restart ComfyUI after. Nothing heavy: no models, and requirements.txt installs the pack's shared dependency inopyutils. The pack needs a current ComfyUI (V3 schema, v0.18.1+), and the README's cd comfyui_ino_nodes is a typo - the folder is ComfyUI-InoNodes.

    The one behavior to remember: with enabled off, the output is the original string, not an empty one. That's intentional and it's the same convention every enabled-toggle node in this pack follows - good to know before you build a workflow that depends on it.

    CategoryInoStringHelper

    Inputs (3)

    NameTypeDefaultDescription
    enabledBOOLEANtrue
    input_stringSTRINGTest String
    toggle_toBOOLEANtrue

    Outputs (1)

    NameTypeDescription
    stringSTRING