Completed if, else, ternery