In an action by the defendant Fenner to perpetually restrain plaintiff from leasing, transferring, or bringing an action to recover possession of the Palace Hotel and fixtures, which the latter owned in the city of Hot Springs, a temporary injunction was granted, and afterwards dissolved at the trial, where all the issues were determined in favor of the defendant McLennon, who thereupon instituted this action on the bond to recover damages sustained by the improvident injunction; but Fenner, who was not served with process, made no appearance, and this appeal is by the American Bonding & Trust Company from a judgment fixing its liability as surety at §825, and from an order overruling a motion for a new trial.
For a reversal of the judgment and order thus presented it is urged that the damages sustained by reason of the injunc tion must be assessed before an action on the bond is maintainable, and that the judgment in the former case of Fenner v. McLennon is res judicata. Apparently mindful of the fact that the principal may or may not be financially able to promptly respond in damages, and that his sureties on the bond must have their day in court, a considerate Legislature has left much to judicial discretion with! reference to such eon.-*494tingencies by the enactment of section 200 of the Code of Civil Procedure, which relates to the point in view, and provides that “the damages maybe ascertained by a reference, or otherwise, as the court shall direct.” An examination of all accessible statutes, upon which many of the decisions relied upon by counsel for appellant are predicated, discloses the imperative requirement that the damages shall or must be assessed upon the dissolution of the injunction in the action instituted for its procurement,and we find no cases holding that such an action on the bond is not maintainable under a statute similar to the provision above quoted. Manifestly, 1 ho light to have the damages sustained by the improvident issuance of an injunction assessed in the action brought to procure the saméis discretionary with the trial court, and a remedy which may be waived without prejudice to an action upon the bond b,y the party enjoined and for whose benefit the statute was apparently intended. In coustruing an identi'cal'provision in Hayden v. Keith, 32 Minn. 277, 20 N. W. 195, it is held that such damages may be assessed in the same action or by suit upon the bond, and the court says: “The parties signing the bond contract with reference to the statute, which provides the manner in which the damages may be ascertained. They are therefore bound by it as a part of the contract. But we do not think that this remedy ought to be held exclusive, and, whatever may have been the chancery rule, we see no good reason why the parties may not waive this method of assessing the damages, and have the same ascertained directly in the suit upon the bond.” Nor is there any merit in the contention that respondent is limited by the recovery of costs in the former action by reason of the fact that the dam*495ages herein recovered were alleged in his former answer byway of counterclaim, but no evidence thereunder was introduced, and which, according to the stipulation of the parties, was eliminated therefrom, as follows: “‘The defendant now dismisses the cause of action alleged in the counterclaim in the eighth paragraph of the answer with reference to any damages.’ Which withdrawal was allowed by the court, the same being the damages and the whole thereof claimed by the defendant in said former suit (McLennon plaintiff in this suit) on account of Fenner’s wrongful withholding said property as set out in the eighth paragraph of said answer, being the damages covered by the bond in this action.” Assuming, as a general proposition of law, that such damages existed, and are available as a counterclaim to Fenner’s alleged cause of action, the failure to plead and offer proof thereof would not 'estop respondent from maintaining this suit on the bond fdr damages sustained by reason of the injunction. Shankle v. Whitley, 42 S. E. 574. As appellant was not a party to the action in equity for an injunction, instituted by Fenner, who has not been called upon to answer respondent’s complamt in this action at law for damages, there is neither identity of persons nor subject matter, and the decree dissolving the temporary injunction by which respondent herein was restrained from occupying his own premises is not res judicata. This conclusion is justified by the following authorities: Turner v. Williams, 17 S. D 548, 97 N. W. 842; Selbie v. Graham, 18 S. D. 365, 100 N. W. 755; Cromwell v. County, 94 U. S. 351. It is said in Bouvier’s Law Dictionary that: “In order to make a matter res judicata, there must be the concurrence of the four conditions following: (1) Identity in the thing sued for; (2) Identity of the cause of *496action; (3) Identity of the persons and parties to the action; (4) Identity of the quality in the person for or against whom the claim is made.” The money which respondent was required to expend in repairing waste done or permitted by Fenner during his unwarranted occupancy, of the premises, and the rental value of such property, together with reasonable attorney’s fees, being cleariy within the proximate consequences of the injunction, there is no merit in the contention that the true measure of damages was not employed, and the verdict for but little more than one-half the amount named in the bond is amply sustained by competent evidence. In Neilson v. City of Albert Lea, 87 Minn. 285, 91 N. W. 1113, the court say: “In a suit upon a statutory injunction bond, where the bond is predicated upon a preliminary injunction issued in a cause the purpose of which was to enjoin defendants from prosecuting certain actions, counsel fees and the necessary expenses incurred in an unsuccessful effort to dissolve the injunction and in conducting the main action may be recovered upon final dissolution of the injunction. ” As the certificate of the trial judge to the effect that an exception is deemed to be taken to each of his rulings without the formality of an exception is insufficient unless such exceptions are incoi-porab'd into the bill of exceptions, appellant, as a matter of legal right, was not entitled to a consideration of the foregoing questions, but, under the view taken of the case, respondent is not prejudiced by their determination.
From a careful study of the entire record, we are satisfied that no error occurred at the trial, and the judgment appealed from is affirmed.