23.11.2010, 14:41
I suggest you to not mix else if, like
if(IHaveApple == 1) { Says: I have one apple; }
else if(IHaveBerries == 2) { Says: I have two berries; }
else if(IHaveApple == 2) { Says: I have two apple; }
I hope you got it what I mean, you should use if .. if, if you compare different things.
if(IHaveApple == 1) { Says: I have one apple; }
else if(IHaveBerries == 2) { Says: I have two berries; }
else if(IHaveApple == 2) { Says: I have two apple; }
I hope you got it what I mean, you should use if .. if, if you compare different things.