Is if(var == true) faster than if(var != false)?

Viewed 11632

Pretty simple question. I know it would probably be a tiny optimization, but eventually you'll use enough if statements for it to matter.

EDIT: Thank you to those of you who have provided answers.

To those of you who feel a need to bash me, know that curiosity and a thirst for knowledge do not translate to stupidity.

And many thanks to all of those who provided constructive criticism. I had no knowledge of the ability to state if(var) until now. I'm pretty sure I'll be using it now. ;)

10 Answers
Related