Nakano15 2 Posted May 13, 2021 I had quite a surprise, when I found out that switch only works for integer variables, and not for string. Someone knows if there's an alternative command that allows me to do that? Quote Share this post Link to post Share on other sites
0 4144 364 Posted May 13, 2021 try if/else if Quote Share this post Link to post Share on other sites
0 Nakano15 2 Posted May 14, 2021 Seems like I'll have to, then. 😕 Quote Share this post Link to post Share on other sites
0 Hyroshima 18 Posted May 15, 2021 On 5/13/2021 at 6:23 PM, Nakano15 said: I had quite a surprise, when I found out that switch only works for integer variables, and not for string. Someone knows if there's an alternative command that allows me to do that? You can turn the string into a number and then use the switch, give an example of how you would like to use that i make an example model. Quote Share this post Link to post Share on other sites
0 Nakano15 2 Posted May 21, 2021 Nevermind that, I already did the changes on the code to several ifs/else ifs. Quote Share this post Link to post Share on other sites
I had quite a surprise, when I found out that switch only works for integer variables, and not for string.
Someone knows if there's an alternative command that allows me to do that?
Share this post
Link to post
Share on other sites