switch
#5

'switch' is faster than 'ifs' if there are more than 2 checks. So your version is fine and is probably the best way to do it.

EDIT: About the above post you can achieve that in a switch with the default case.
Reply


Messages In This Thread
switch - by Speed - 28.10.2011, 17:29
Re: switch - by park4bmx - 28.10.2011, 17:37
Re: switch - by Speed - 28.10.2011, 17:46
Re: switch - by FUNExtreme - 28.10.2011, 18:09
Re: switch - by iggy1 - 28.10.2011, 18:10

Forum Jump:


Users browsing this thread: 1 Guest(s)