format if else statements