Put condition at the end of the x-tie code