July 22, 1925. The opinion of the Court was delivered by The respondent commenced an action against the defendants for the foreclosure of mortgages upon real estate described in the complaint, which action resulted in a decree for the foreclosure of the mortgages and the sale of the real estate. From this decree, the defendants gave notice of appeal, and in order to prevent the sale of the premises pending the appeal, executed an undertaking which, among other things, provided that if the judgment be affirmed, they would pay to the plaintiff the value of the use and occupation of the property from the date of the undertaking until the delivery of the property pursuant to the judgment, not exceeding $500.
The result of the appeal was the modification of the decree in two particulars, as will be found by reference to the judgment. 126 S.C. 175; 119 S.E., 580.
The plaintiff, claiming that the result of the appeal was the affirmance of the judgment brought suit on the bond. The defendants by their answer interpose three defenses. The first is a general denial of the allegations of the complaint, except such as are afterwards, in the answer, admitted to be true. The second defense admits the entering into the undertaking, and sets up the judgment of this Court as a bar, alleging that the judgment was not affirmed but was specifically reversed. The third defense admits that the defendants entered into the undertaking referred to, and alleges that the costs and disbursements were taxed against *Page 3 the respondent in favor of the defendants, and that no objection was made upon the ground that the Supreme Court had affirmed the judgment, and that there was no appeal from such taxation of costs, and that the rights of the parties had been thereby adjudicated on the issue of taxing costs, and that the respondent is now estopped from maintaining this action. To this answer the respondent interposed a demurrer upon the ground that the answer presents only questions of law, that is to say; (1) Whether the Circuit Court was affirmed, modified, or reversed. (2) Whether or not the modification as a matter of law affected the right to recover rental value of the premises during the appeal for which purpose the appeal bond was given to secure the plaintiff against loss during the appeal. On hearing the demurrer, his Honor, Judge Henry, sustained it as to the second and third defenses, and ordered them stricken out as not stating facts sufficient to constitute a defense, but overruled the demurrer as to the first defense. The defendants have appealed on five exceptions.
The first exception imputes error to his Honor, Judge Henry, in sustaining the demurrer in part, when it was directed against the defendants' answer as a whole, which contained three separate and distinct defenses. In support of these exceptions, counsel for appellant cites: 31 Cyc., 331. Bomar v. Means, 37 S.C. 520; 16 S.E., 537; 34 Am. St. Rep., 772. Buist v. Salvo, 44 S.C. 143;21 S.E., 615. Lawson v. Gee, 57 S.C. 502; 35 S.E., 759.Sloan v. Seaboard R.R. Co., 64 S.C. 389;42 S.E., 197; and Ferst et al. v. Powers et al., 64 S.C. 221;41 S.E., 974.
An examination of these authorities does not support the first exception. The demurrer is to the answer as a whole. The pleader, by his answer, has set out each defense with exceptional thoroughness. The demurrer to the entire answer is based upon the same grounds, and therefore, as the whole answer is made up of the defenses contained in it, the demurrer is directed against each defense, *Page 4 and, as each defense is complete and is separately stated, and stands by itself, the demurrer stands as though interposed to each defense separately. An examination of these authorities will show that they have no application to a demurrer to a cause of action or a defense which is complete in itself, but relate to cases in which there is a commingling of statements, some of which have no connection with the cause of action or defense sought to be set up, or have relation to some other cause of action or defense. In these cases, the learned Chief Justice has pointed out the remedy. In the one case it will be by a motion to strike out the irrelevant or redundant matter, and in the other case, by a motion to require the pleader to separately state his causes of action or defenses. One of the authorities cited shows, for instance, that a demurrer to a complaint will not lie where legal and equitable causes of action are commingled in one complaint, and that if a demurrer be good as against a legal cause of action, it will not be sustained if not also good against an equitable cause of action. Such is not the case here. The answer in this case, as stated, has three separate and independent defenses, each complete in itself. As the first defense contains a general denial, which raises issues to be settled, it is manifest that there was no error on the part of his Honor in not sustaining a demurrer as to it.
The second and third defenses are based upon conclusions of law, that is to say, upon the construction of the decision of the case on the former appeal, 126 S.C. 175;119 S.E., 580, and each defense is therefore to be construed just as though the entire decision of this Court in the former appeal were embraced in it. This brings us to a consideration of the effect of the decision of this Court in that case.
While, as a matter of law, the modifications contained in the decision carry costs to the prevailing party, yet the modifications in the administrative part of the order do not *Page 5 vitally affect the judgment and, by the very terms of the decision of the Court, the real judgment in the case is affirmed; and, besides, the liability of the parties under the appeal bond should be construed in the light of whether the judgment was affirmed or reversed — in other words, there would have to be a reversal of the judgment, in order to relieve the appellants in this case from responsibility on their undertaking.
The main object of this suit is the foreclosure of the mortgages, and not the obtaining of a personal judgment. Any judgment that may have been given, and any disposition of the fund, is administrative in its character, and the settlement of the matters of attorney's fee and disposition of the surplus were things to be disposed of within the main judgment. It is well settled that the prevailing party is entitled to have cost taxed in his favor, but the party who prevails, in that sense, may yet have a judgment affirmed as against him, and yet he has prevailed on some issues raised, so that he may have costs taxed in his favor. As, for instance, in the case of Sullivan v. Latimer, 43 S.C. 262, at page 264; 21 S.E., 3, this Court said:
"So in the case at bar, the plaintiffs, Charles M. Sullivan and Thomas J. Sullivan, have succeeded in modifying the judgment appealed from, and although all their grounds of appeal were not sustained, some of them were, and thus they become `the prevailing parties.'"
While it is true that the case of Salley v. Railway, 79 S.C. 388;60 S.E., 938, was a case at law, it tends to throw light on the point now in issue. There the plaintiff recovered judgment against the defendant before a magistrate for $2 damages and $40 statutory penalty, and this Court, on appeal from the Circuit Court, rendered judgment that the judgment of the Circuit Court be affirmed, with reduction of $5 of overcharge on the amount found as penalty. Each side, claiming to be the prevailing party, gave notice to taxation of the Supreme Court costs before the Clerk, *Page 6 and judgment in favor of the plaintiff on such taxation was affirmed by the Circuit Court. This Court, in disposing of of the matter, said:
"The question presented is, which party is entitled to costs as prevailing party? This is a case at law and the Court can only affirm or reverse, and has no power to modify as in equity cases. Hosford v. Wynn, 22 S.C. 313. The judgment of this Court, therefore, in terms and in legal effect was substantially a judgment of affirmance. Of course, it cannot be said that defendant prevailed in reversing the judgment Where the case is one in equity and the appellant succeeds in substantially modifying the decree, costs may be allowed him as prevailing party. Sullivanv. Latimer, 43 S.C. 262; 21 S.E., 3.
"The judgment in this case, if it is not to be strictly construed as an affirmance of the judgment appealed from, bears analogy to cases at law in which a new trial nisi has been granted, but judgment to stand affirmed upon remitting the amount designated by the Court, in which case, if the remittance is made and judgment stands affirmed for the reduced amount, the party whose judgment stands affirmed is the prevailing party and entitled to costs of appeal. Steppv. Association, 41 S.C. 206; 19 S.E., 490. Young v.Cohen, 44 S.C. 376; 22 S.E., 409."
So we see that a judgment may be modified and a litigating party may get the benefit of it to the extent that it is modified, and also have costs taxed in his favor and yet, at the same time, have the judgment affirmed as against him.
Therefore, in this case, the result of the former appeal was to leave the judgment for the sale of the land intact, but modifying other parts of the judgment so that there was a different basis for calculating attorney's fees and providing that the surplus should be paid to the mortgagor. The main object was to procure the sale of the land, and this part of the judgment was in no way disturbed, save *Page 7 that the time of the sale was delayed by the appeal, and as against the consequences of this delay, the undertaking was given, and upon the affirmance of the judgment of sale the defendants have become liable upon their undertaking to such an extent as may be determined on the trial of the issues raised by the complaint and the answer as it now stands, with its second and third defenses stricken out.
The judgment of the Circuit Court is affirmed.
MESSRS. JUSTICES COTHRAN and MARION concur.