test if then else