completed if, else, ternary