What I see is just a simple if/then/else. What I am looking for is to be able to add multiple options, more than yes/no.
I use a motor as a switcher, so I rotate it to some position and measure its degrees to switch the mode of the robot and there are going to be more than 2 modes, like 4-8. How can I do it in an elegant way?