Switch statement?

I just started learning unreal, but wouldn’t something like this be cleaner?