substitutes the second if to else