I'm writing an application for iPhone that involves checking a lot of variables. Keeping efficiency in mind, I'd like to know the relative load each kind of if statement takes. The ones I am concerned with are:
if (Variable == 0);
if (Variable != 0);
if (Variable > 0);
if (Variable < 0);
if (Variable <= 0);
if (Variable >= 0);
Basically, what I'm asking is how much load on the processor and memory does each of the above if statements take. Are they truly equal, or are some more processor heavy than the others? Thanks so much!