Is there a better way to do this? Switch on text

I want several variables to change based on one variable. For that I’m using a switch-on-name node, but it looks messy. I’m wondering if there is a revised way to do this. I find myself using this method a lot so any suggestions will be greatly appreciated.

Thank you so much.

YES! There is. First - instead of using names, you want to use an Enumerator. Enumerators are like names except that they are also integers - which makes it easier to make switches on them. Secondly, there is this thing called the Select node and it’s going to be your new best friend.

The Select node removes the need for a switch execution node and allows you to just have a single line of execution. Combined with an enumerator (as the image shows), you can quickly set the a lot of variables fast and completely automatically. Repeat as neccesary for all variables.

No problem! If you feel the question has been answered, feel free to mark it as such =)