If the amount of the setoff, duly established, be equal to the plaintiff's debt or demand, judgment shall be rendered that the plaintiff take nothing by his or her action; if it be less than the plaintiff's debt or demand, the plaintiff shall have judgment for the residue only.