The correct syntax was used for the if/else.