CS skipping over *if statements?

Well, I recommend you switch to using tabs instead of spaces for your indentation; a lot more visible with little key presses (one tab goes as far as like 4 spaces but with only 1 press for each indentation, a lot easier to handle).

I also recommend using CSIDE to make your coding and testing easier, if you aren’t using it already.