Title 44, Chapter 7, Section 77
(a) If, on the trial of the case, the judgment is against the
tenant, the judgment shall be entered against the tenant for all
rent due and for any other claim relating to the dispute and the
distress warrant shall be granted.
(b) If the judgment is for the tenant, he shall be entitled to remain in the premises and in possession of his property and the landlord shall be liable for all foreseeable damages shown to have been caused by his wrongful conduct. Any funds remaining in the registry of the court shall be distributed to the parties in accordance with the judgment of the court. If the tenant has been deprived of the possession of his property pendente lite pursuant to subsection (e) of Code Section 44-7-75, the court shall order that the property be returned immediately to the tenant.