What is the impact (performance wise) of an "if" statement
My buddy says that he tries to program with as little if/else statements as possible, for efficiency's sake. When I asked why he said that if/else's take a somewhat significant part of the program's ressources, so he tries to stay away from them.

Is he right? Are there better ways to execute if/else style code without actually using that structure? Are switch/case structures any better?
What is the impact (performance wise) of an "if" statement
===

My buddy says that he tries to program with as little if/else statements as possible, for efficiency's sake. When I asked why he said that if/else's take a somewhat significant part of the program's ressources, so he tries to stay away from them.

Is he right? Are there better ways to execute if/else style code without actually using that structure? Are switch/case structures any better?