fix if to ifequal