Completed if, else ternary