This action was commenced by respondent upon a promissory note to recover the sum of $3,899.80, with interest, attorneys’ fees, and costs. The note was executed for the sum of $5,000, secured by chattel mortgage which had been reduced to the above amount by a summary foreclosure of said mortgage, by notice and sale. Appellants’ answer contained a further and separate answer and a cross-complaint. The time for answering the cross-complaint having expired, and no answer or demurrer thereto *346having been filed, respondent’s default was entered and appellants submitted proof and obtained judgment in the sum of $12,740.00 and costs.' On August 25, 1919, an execution was issued upon this judgment directed to the sheriff of Bannock county. On August 26’, 1919, levy was made upon respondent’s property and the sheriff was given a draft by respondent for the full amount of the judgment, including his fees and commission. On August 30, 1919, respondent filed its motion to set aside the default and vacate the judgment upon the ground of mistake, inadvertence, surprise and excusable neglect, and also that no cross-complaint was ever prepared, served or filed which would warrant the entering of a default; that same does not state facts sufficient to constitute a cause of action, and that the allegations thereof were deemed controverted by the statutes of this state. On September 3, 1919, marginal satisfaction of the judgment was entered. After a hearing on said motion, the court denied same upon the ground of mistake, inadvertence, surprise and excusable neglect, but sustained said motion on the ground “That said cross-complaint is insufficiently set out and pleaded and on no other ground and for no other reason.” From that part of the order granting the motion to set aside the default and vacate the judgment, this appeal is prosecuted.
Appellants assign as error the action of the court in granting said motion on the ground above specified.
Appellants, in their answer, denied liability on the note and set up by \?ay of a further and separate defense that they were not in default in payment of interest; that the affidavit upon which the foreclosure of the mortgage was based was false and fraudulent in alleging they had defaulted in the payment of interest; that the debt secured by the mortgage was not in fact due, and respondent had no right to so declare, and that by said foreclosure they were unlawfully deprived of their property to their damage in the sum of $12,740. The cross-complaint, after alleging the corporate character of the respondent on information and belief, alleged “That defendants hereby adopt, reiterate and *347make a part of this cross-complaint, paragraphs numbered 1, 2, 3, 4, 5, 6, 7 and 8 of the foregoing and hereunto attached further and separate answer and defense of these defendants, and make the same paragraphs numbered 2, 3, 4, 5, 6, 7, 8 and 9, respectively, of this cross-complaint, as fully as if the same were set out verbatim herein,” and this is followed by a prayer that respondent take nothing by its action and that appellants have judgment for the sum above mentioned.
Appellants urge that if the cross-complaint was defective or insufficient in manner and form, in the absence of a timely objection by demurrer or motion, it is now too late to raise such question. Respondent contends that the cross-complaint is, in fact, no pleading at all; does not state a cause of action; is in its legal effect a counterclaim and deemed denied under C. S., sec. 6717, and gave the court no jurisdiction to enter default or render judgment. We are called upon to determine the legal' effect of the pleading denominated a “cross-complaint.” If, as a matter of law, it is a counterclaim, it was deemed denied, and no default could be entered or judgment rendered without a trial upon the merits. A reference to the statutes is necessary to determine this question. C. S., sec. 6694, so far as material, provides:
“The answer of the defendant shall contain:
“2. A statement of any new matter constituting a defense or counterclaim.”
C. S., see. 6695, so far as material, provides:
“The counterclaim 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 one of the following causes of action:
“1. A cause of action arising out of the transaction set forth in the complaint as the foundation of the plaintiff’s claim, or connected with the subject of the action.”
C. S., sec. 6696, is as follows:
“If the defendant omit to set up a counterclaim in the cases mentioned in the first subdivision of the last section, *348neither he nor his assignee can afterwards maintain an action ■against the plaintiff therefor.”
In C. S., sec. 6717, it is provided: “The statement of any new matter in the answer, in avoidance or constituting a defense or counterclaim, must, on the trial, be deemed controverted by the opposite party,” and C. S., sec. 6897, provides: “If a counterclaim, established at the trial, exceed the plaintiff’s demand, judgment for the defendant must be given for the excess; .... ”
An examination discloses that the office and function of a counterclaim is well defined, and it is hot optional with the pleader to plead a cross-complaint where, by the terms of the statute, it is, in truth and in fact, a counterclaim. In passing upon the nature and character of the pleading, we must assume that its allegations are true.
The further and separate answer of appellants, which was adopted by reference into a cross-complaint, alleged a sale of the mortgaged property, which was given to secure the note sued on, when no legal right existed authorizing such sale. This would constitute a conversion. (11 C. J., see. 284, p. 589.) The respondent was seeking to collect what it claimed to be due on the note, after crediting the amount received by means of the foreclosure sale.
The note was secured by a chattel mortgage, which, according to appellants’ contention, was illegally foreclosed, and the question arises whether this did not give appellants a right of action arising out of the transaction set forth in-the complaint as the foundation of the plaintiff’s claim, or connected with the subject of the action. We think it did. It was defensive matter, which tended to reduce the amount of respondent’s claim. We do not think appellants pould have omitted to plead the conversion of their property as against respondent’s claim on the note and thereafter maintain an action against respondent therefor, and if this be so, it was clearly a counterclaim. The word “transaction” as used in sec. 6695, subd. 1, supra, is broad and comprehensive. (Words & Phrases, 1st ser., vol. 8, p. 7060; 2d ser., vol. 4, p. 971.) The conversion of the mortgaged chattels by the *349mortgagee is a proper matter of counterclaim by tbe mortgagor in a suit by tbe mortgagee upon tbe note which tbe mortgage was given to secure. (Hanson v. Skogman, 14 N. D. 445, 105 N. W. 90.)
Tbe matter pleaded by appellants was a reciprocal demand, existing in favor of appellants and against respondent, between whom a several judgment might be bad, and if appellants established tbe allegations thereof, they were entitled to judgment for any excess over respondent’s claim, under tbe provisions of sec. 6897, supra.
The pleading denominated a eross-cómplaint, if a pleading it may be called, states a counterclaim. Its character is to be determined from tbe nature and substance of tbe facts therein alleged, and not from what tbe pleader may have called it. (1 C. J., sec. 113, p. 995.) Its allegations were deemed denied, and tbe court bad no jurisdiction to enter default or render judgment thereon without a trial upon tbe merits.
Tbe order appealed from is affirmed. Costs are awarded to respondent.
Morgan, C. J., and Rice, J., concur.Petition for rehearing denied.