This action was brought by Green & Co., in the district court of York county, upon an undertaking in attachment, of which the following is a copy:
“Know all men by these presents, that we, Raymond Brothers, as principal, and Cyrus Langworthy, as surety, are held and firmly bound unto Green & Company, in the sum of five hundred and fifty dollars ($550.00), upon conditions following: Whereas th§ said Raymond Brothers is about suing out of the office of the'county court judge, in and for said county, a writ of attachment against the property of said Green & Company, defendants, for the sum of two hundred and sixty-five dollars and thirty-two cents ($265.32), in a certain action against the said Green; Now if the said Raymond Brothers shall pay all damages which the said Green & Company may sustain, by reason of the unlawful suing out of said writ, then this obligation to be void, otherwise to remain in force.
Witness our hands, this 2nd day of March, A. D. 1878,
Raymond Brothers, Principal.
Cyrus Langworthy, Surety.”
Raymond Bros, in their answer to the petition, First. Deny certain facts stated therein. Second. Set up as a set-off certain drafts drawn by them on Green'& Co. and accepted, upon which there is due the sum of $265.52 .and interest. Green & Company demurred to the set-off and the demurrer was sustained.
This case seems to have grown out of that of Green & Co. v. Raymond Brothers, 9 Neb. 295.
The first question to be determined is, was the set-off of Raymond Brothers a proper matter of set-off.
*218In the case of Boyer v. Clark & Mc'Candless, 3 Neb., 161, this court held that a claim for unliquidated damages, the recovery of which is still uncertain, cannot be the subject of set-off.
Section 100 of the code of civil procedure provides that: “ The defendant may set forth in his answer as many grounds of defense, counter-claim and set-off as he may have. Each must be separately stated and numbered, and they must refer in an intelligible manner to the cause of action, which they are intended to answer,”
Section 101 provides that: “ The counter-claim mentioned in the last section must be one existing in favor of a defendant, and against a plaintiff, between whom a several judgment might be had in the action, and arising out of the contract or transaction, set forth in the petition, as the foundation of the plaintiff’s claim, or connected with the subject of the action.”
Section 104 provides that: “ A set-off can only be pleaded in an action founded on contract, and must be a cause of action arising upon contract, or ascertained by the decision of the court.”
The term set-off is here preserved, and is distinguished from counter-claim.
The defense of set-off was unknown to the common law, it being purely the creature of statute, at least in courts having no equity jurisdiction. S. 13, Oh. 22, of 2 Geo. 2, made perpetual by 8 Geo. 2, O. 24, S. 4, provides that: “ Where there are mutual debts between the plaintiff and defendant, or, if either party sue or be sued, as executor or administrator, when there are mutual debts between the testator or intestate and either party, one debt may be set against the other, and such matter may be given in evidence upon the general issue, or pleaded in bar, as the nature of the ease may require, so as at the time of his pleading the general issue, when any such debt of the plaintiff, his testator or intestate, is intended to be *219inserted or given in evidence, notice shall be given of the particular sum or debt so intended to be insisted on, and upon what account it became due, or otherwise such matter shall not be allowed in evidence upon such general issue.”
The object of these statutes was to prevent cross actions between the same parties. Isbay v. Bowden, 8 Exch., 852, 22 Eng., L. & E,, 551; Wallis v. Bastard, 4 Le. G. M. & G., 251, 31 Eng,, L. & E., 175. The law of set-off, at the present time, may be said to consist of the rules and principles derived from adjudications upon the above statutes. A set-off is allowable in all cases of mutual debt — that is, in all claims in the nature of a debt.
In Green v. Farmer, 4 Burr., 2220 — 1, Lord Mansñeld said: “ Natural equity says, that cross-demands should compensate each other, by deducting the less sum from the greater, and that the difference is the only sum which can be justly due. But positive law, for the sake of the forms of proceeding and convenience of trial, has said, that each must sue andrecover separately, in separate actions. It may give light to this case, and the authorities cited, if I trace the law relative to the doing complete justice in the same suit, or turning the defendant around to another suit, which, under various circumstances, may be of no avail. Where the nature of the employment, transaction, or dealings, necessarily constitutes an account, consisting of receipts and payments,' debts and credits, it is certain, that only the balance can be the debt; and, by the proper forms of proceeding in courts of law or equity, the balance only can be recovered. After a judgment, or decree “to account,” both parties are equally actors. Where there were mutual debts unconnected, the laws said, they should not set-off; but each must sue. And courts of equity followed the same rule, because it was the law; for, had they done other*220wise, they would have stopped the course of law in all •cases where there was a mutual demand. The natural .sense of mankind was 'first shocked at this in the case of bankrupts; and it was provided for by 4 Anne, Ch. 17, S. 11, and 5 Geo. 11, Ch. 30, S. 28. .This clause must have, everywhere, the same construction and effect; whether the question arises upon a summary petition, or a formal bill, or an action at law. There can be but one right construction; and therefore, if courts differ, one must be wrong. Where there was no bankruptcy, the injustice of not setting-off (especially after the death of either party,) was so glaring, that parliament interposed by 2 Geo. 11, Ch. 22, and 8 Geo. 11, Ch. 24, S. 5.”
It is the policy of our law to settle in one action, so far .as may be, all claims arising upon contract between the same parties. And this, too, whether the damages are liquidated or not. In the case at bar the action is ■brought upon the undertaking — the contract of the plaintiff to pay whatever damages the defendant should sustain by the attachment, if it was wrongfully issued. In no event, can the judgment on the undertaking exceed the penalty therein, while it may be very much less. In ■our opinion it is more in harmony with the letter and .spirit of the code to allow a set-off to be pleaded in all actions founded upon contract. And that, too, whether the damages are liquidated or not. Stevens v. Able, 15 Kans., 584. Read v. Jeffries, 16 Id., 534. The doctrine of Boyer v. Clark is therefore modified to that extent. And .the Baymond Brothers being the .principals in the undertaking, and the claim being in their favor may be set-off. Wagner v. Stocking, 22 Ohio State, 297.
The value of the services of the attorneys employed by Green & Co,, to procure a dissolution of the attachment, was a proper item of damages, and the 'fact that such services had not been paid for, would not prevent a .recovery of the amount reasonably due. The j udgmeiit *221of the district court is reversed, and the 'cause remanded for further proceedings.
Reversed and Remanded.