Need Help With "If" Statments being ignored

It's unrelated to the problem at hand, but why all those capitals?