Implementation of If()