[Tutorial] Switch & If/else
#6

Quote:
Originally Posted by Vince
View Post
This should be common knowledge, but I'll be sure to link people here whenever I see this kind of structure. Nevertheless, the if-else structure isn't inherently "wrong" since it will still work. Perhaps "bad" or "not recommended" would be a better wording.
It's not really common knowledge as I've seen many people making this mistake.
Quote:
Originally Posted by iZN
View Post
Agree with Vince. I won't be minding to use if-else statement for any amount of cases. Just that it is slow as compared to switch statement. NOT bad or wrong or etcetera. Also, this isn't called a tutorial, you have just gave a hint/suggestion in improving it. Just provide some something like information about if-else statement and switch statement.
Yeah it's more a tip, although it's a bit of a tutorial how to prevent wasting data at this point.
Quote:
Originally Posted by EnzoMetlc
View Post
It is simple, but it uses as much .
+Rep.

Ah, more simplified.
Thanks
Quote:
Originally Posted by Diesel5
View Post
Good tutorial.
Thank you.
Reply


Messages In This Thread
Switch, If/else & Static - by [WA]iRonan - 15.01.2014, 16:52
Re: Switch & If/else - by Diesel5 - 15.01.2014, 16:57
Respuesta: Switch & If/else - by Swedky - 15.01.2014, 16:59
Re: Switch & If/else - by Vince - 15.01.2014, 17:00
Re: Switch & If/else - by iZN - 15.01.2014, 17:09
Re: Switch & If/else - by [WA]iRonan - 15.01.2014, 17:50
Re: Switch & If/else - by 2KY - 15.01.2014, 20:03
Re: Switch & If/else - by Zjiht - 15.01.2014, 20:09
Re: Switch & If/else - by Hansrutger - 15.01.2014, 21:16
Re: Switch & If/else - by Jimmy0wns - 15.01.2014, 21:20

Forum Jump:


Users browsing this thread: 1 Guest(s)