Use if constructions correctly