Switch on string cannot accept underline

On the switch on string node in the blueprint graph, The string “_” (underline) cannot be used. When input it goes back to “None”

Works for me:

288283-switch.jpg

What am I missing?..

@ClockworkOcean - he means adding a new Pin and in the Options add “_” as the PinName. It gives also None to me
I guess it is a bug

288288-1.png

aahhhhh…

Seemingly it converts the pins to a Display Name, and if that Display Name is empty, then it’s reset to None. It causes other issues too, i.e. not allowing empty string, space, different strings looking the same, like for case-insensitive comparing both pins will be converted to uppercase:

288289-switch.png

The same issue is present on the Switch on Name node.

It surely shouldn’t be by design, so I propose creating an issue in Unreal Engine Community

SwitchOnName ist Not a Problem with cases-a Name Type is per Definition Case intensive

Specifically case might not be the problem, but some others, including the one described by OP (underscore name), are affected.