Is there a better way to check what a variable equales?

Hi! instead of having a ton of equal bools and branches, is there a better way to check what a variable equals and what to execute from there?
Thanks!

1 Like

Hello, it depends on the variable to control.

Its reading an integer, I just dont want to have a ton of "=="s and branches

Switch node, add pins as required. Not convenient if your int is not a range 0-n.

image

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.