— This is an action in replevin to recover nine slot machines alleged to be of the value of $325. The plaintiff is an Illinois corporation, and alleges in its complaint that the defendant on the twenty-second day of October, 1904, at Boise City, and without plaintiff’s consent, and wrongfully, took said slot machines from the possession of the plaintiff; that upon demand the defendant refused to deliver the same to the plaintiff. Judgment is demanded for the recovery of said chattels or for their value in case delivery cannot be had, together with $25 damages and costs of suit. The amended answer sets up three separate defenses. In the first the incorporation of the plaintiff- is admitted, but avers that the plaintiff has not filed a copy of its articles, certified or otherwise, in the office of the Secretary of State of the state of Idaho, and has not in writing or otherwise designated any person residing within the state as its agent upon whom legal process may be served, and denies that the plaintiff was on Ihe twenty-second day of October, 1904; or at any other time, at the city of Boise, or any other place within the state of Idaho, lawfully possessed of said slot machines, or that the plaintiff was at the commencement of this action, or at any time since, entitled to the possession of said slot machines; denies that said slot machines are of the value of $325 or any other sum; denies that said slot machines, or any part thereof, was on said date or at any time the property of the plaintiff; denies that the plaintiff at any time before the commencement of this action demanded the possession of said slot machines; denies that he still unjustly detains the same or ever at any time unjustly detained the same to the damage of the plaintiff in any sum whatever.
For a second defense the defendant alleges that he is a duly appointed, qualified and acting justice of the peace, in and for Boise Precinct No. 2 of Ada county, Idaho; that on the twenty-second day of October, 1904, information was presented to him as such justice of the peace, by which as such justice *675of the peace he was informed and satisfied that gambling devices, to wit, said nine slot machines, were then within said city and then in operation as such gambling devices in said city; that said information was derived from an affidavit of the prosecuting attorney of said county; that thereupon defendant, acting as such justice of the peace, forthwith issued warrants to “the sheriff or any deputy sheriff or constable of said county,” commanding that said slot machines be brought before him at his office in said city, and that thereupon said slot machines were under and by virtue of said warrants, which warrants were placed in the hands of A. Anderson, a constable of said county, and under and by virtue of which said constable brought before the defendant, as; justice of the peace, said slot machines to be dealt with according to law and the statutes in such eases made and provided, and that such slot machines were in the custody of the law and in the possession and under control of said A. Anderson, as constable, subject to the order of said justice’s court at the time of the commencement of this action, all of which facts were well known to plaintiff and its agents and attorneys at the time of the institution of this action. It also avers that said slot machines, and each and every of them, were adopted, designed and designated for the purpose of being used solely in gambling; that they were being used for the sole purpose of gambling at the time the same were seized, and that each of the said slot machines had been designed, devised and used for gambling purposes at the time of the seizure of the same and for some days prior thereto, and all of said machines were being used in said Boise City for gambling and playing games, at which money was bet and won or lost; that each and all of said slot machines were gambling devices and were not adapted to nor could they, or either of them, be used for any useful purpose, and that the same and all of them are outlawed property without value or ownership at the time of the commencement of this action and at all times since said date, and that said machines, nor any of them, are susceptible of any legitimate use, are instruments of crime designed and devised for the purpose of violating the statutes of this state-*676prohibiting gambling, and are incapable of ownership; that such slot machines were at the time of the commencement of this action and at the times mentioned in the complaint, in the possession of said constable under the facts averred.
The third defense alleges that the plaintiff is a foreign corporation, and has not filed its articles of incorporation in the office of the Secretary of State, and has not designated any person upon whom service of process may be served as required by law.
Plaintiff demurred to said amended answer and each of said separate defenses, which demurrer was overruled by the court, and plaintiff thereupon moved for judgment on the pleadings, which motion was denied by the court. The cause coming on for trial, the plaintiff decided to stand on its demurrer to the answer and its motion for judgment on the pleadings and declined to introduce any proof, and the court thereupon dismissed the action at plaintiff’s cost.
The notice of appeal states: 1. That the appeal is from said order granting the defendant leave to amend his answer and the order overruling plaintiff’s motion for judgment on the pleadings; 2. To the order overruling plaintiff’s demurrer to defendant’s amended answer; 3. From the judgment dismissing the action at plaintiff’s costs.
Counsel for plaintiff has assigned three errors, the first of which is that the court erred in overruling plaintiff’s motion for a judgment on the pleadings. Counsel contends that the material allegations of the complaint are not denied, and that the attempted denial of ownership of the property in the plaintiff is in the language of the complaint itself, which is no denial.
We have above set forth the denials and averments of the three separate defenses, and it is clear to us that they are sufficient to put in issue all of the material allegations of the complaint, except the allegation that the plaintiff is a corporation organized and existing under the laws of the state of Illinois, which fact is admitted. That being true, it devolved upon the plaintiff to introduce evidence sufficient to establish his case by a preponderance of evidence, which it *677did not do; therefore the court did not err in entering judgment of dismissal. In Walling v. Bown, 9 Idaho, 184, 72 Pac. 960, this court, in discussing a motion for judgment on the pleadings, said: “When the plaintiff moved for judgment on the pleadings he not only, for the purposes of his motion, admitted the truth of all the allegations of the answer, but he must also be deemed to have admitted the untruth of all his own allegations which defendants had denied.” We think that is the correct rule, as it is incumbent on the plaintiff to prove his controverted allegations by a preponderance of evidence, and where the court has before it nothing but the allegations of the complaint and denials of such allegations by the answer, there is no preponderance in favor of the plaintiff, and the court must enter judgment for the defendant. (See opinion on petition for rehearing in Inland Lumber Co. v. Thompson, ante, p. 508, 83 Pac. 933.)
The question of the constitutionality of the anti-gambling laws of the state has been raised, but under the well-established rule in this court, the constitutionality of a law will not ■ be passed upon unless it is absolutely necessary for the determination of the ease. We decline to pass upon that question, as it is not necessary to do so in the decision of this case. (State v. Ridenbaugh, 5 Idaho, 710, 51 Pac. 750; State v. Mulkey, 6 Idaho, 617, 59 Pac. 17; In re Inman, 8 Idaho, 398, 69 Pac. 120.) The judgment of the trial court is affirmed with costs in favor of respondent.
Stockslager, C. J., and Ailshie, J., concur.