iflogic handling