Find as a function of if with