I was trying to see the speed difference between == and !=, and it occurred to me that there might be a possibility that the order in an if-else doesn't matter. Purely logically, if you need to test a condition, and have only 2 options, there should not be any difference if you jump to the "if" part or the "else" part.
At least this was my thought process, knowing nothing about how it actually works. This is where you come in.
Here is some code to show what I am trying to choose between:
if (x == 10)
// do stuff. this will be true 20% of the time
else
// do frequent stuff
if (x != 10)
// do frequent stuff 80% of time
else
// do other stuff 20% of the time
Please help