switch() or if()?

Started by
0 comments, last by Daishim 21 years, 10 months ago
I think I remember hearing something about a string of if statements are actually faster than a switch statement. Do I remember correctly? ... or is this false?

I know only that which I know, but I do not know what I know.
Advertisement
Usually, if you can use a switch, then use a switch. It is generally a tiny bit faster than a string of if''s.
life is unfair, take advantage of it.UNMB2 - if the link doesn't work, try clicking it :)

This topic is closed to new replies.

Advertisement