If and While Loop