if statements always executing

for some reason whenever i use if statements within the main() function they always execute. i've even used if (false) {...code} and they still execute. If i move them to another function then call it, it works normally.

Any idea where I'm going wrong?

I'm using the Kdevelop IDE if that makes any difference.

cheers
I suggest that you contact the makers of Kdevelop. They would be the best equipped to answer this one.

Good luck.
Topic archived. No new replies allowed.