I am using nested loop conditional \iftoggle of etoolbox, is there any other generalized conditional? Usually it works as:
\newtoggle{name}
\settoggle{name}{true}
\iftoggle{name}{do if name is true}{do if name is false}
Now, I would like something like:
\newtoggle{name} % with 5 options, for example
\settoggle{name}{option3} % all the other option are false
\iftoggle{name}{do if option1 is true}{do if option2 is true}{do if option3 is true}{do if option4 is true}{do if option5 is true}
I know there is a solution with nested conditional, but maybe there is other direct solution. Any idea?
