The judgment of the court upon findings pursuant to § 21-41-22, if in favor of the defendant or intervenor, for the recovery of the real property, and in favor of the plaintiff or intervenor for the value of such improvements, shall require the person found entitled to recover said real property to pay to the person entitled to recover for such improvements the value of the improvements as determined by such findings, within sixty days from the rendition of such judgment, less the amount of the damages, if any, recovered, for withholding the land, and for waste committed upon said land by the party adjudged entitled to recover the value of such improvements; and until such payment, or a tender of deposit in the office of the clerk of courts in which such action is pending, no execution or other process shall issue in such action to dispossess the person entitled to the value of such improvements, his heirs or assigns; and in default of such payment by the person entitled to recover said real property, the person entitled to the value of the improvements shall pay to the person entitled to recover the real property the value of said land as determined by such findings, and the damages, if any, recovered, for withholding same and for waste committed upon said land by him.
SDCL 21-41-23