If you have multiple If statements happening to check the logic on something is it better to just use all else if's to make your code execute faster?
and I understand that people always say that it is better programming to keep your variables as far from being global as possible, but why is this? what does that actually improve within the code of the program?