simple if then else statement compiles