There's a little performance difference between the code in the if-then block and else block.
Generally, the code runs faster in the if-then block. So, arrange the orders to this specification gives you a slight edge.
if (condition){
<put here the most often executed codes here>
} else {
...
}
Generally, the code runs faster in the if-then block. So, arrange the orders to this specification gives you a slight edge.
if (condition){
<put here the most often executed codes here>
} else {
...
}