By its application for an absolute writ of prohibition against the respondent Sullivan to restrain him from acting as judge of the municipal court of the city of East Grand Forks, the state challenges the constitutionality of Laws 1895, c. 229, én*381titled “An act to establish municipal courts in incorporated cities having a population of less than 5,000 inhabitants.”
The act in question, after providing that there is thereby established a municipal court in each incorporated city in the state having a population of less than 5,000, then provides that such court shall be a court of record, and shall have jurisdiction of civil actions at law where the amount in controversy does not exceed $500, and shall have exclusive jurisdiction of all criminal complaints and examinations, and trials of criminal cases arising or triable within such city, heretofore triable before a justice of the peace, and that its jurisdiction shall be co-extensive with the limits of the county in which the city is situated. It excepts from its jurisdiction the classes of civil actions usually excepted in municipal court acts, such as divorce, libel, slander, and the like, and also actions involving the title to real estate. The judge of this court is to be elected by the qualified electors of the city at the general city election. Any vacancy in the office is to be filled by the governor of the state. The judge must be a qualified elector of the city, and he is given the general powers of judges of courts of record. . The court must be held within the city. It is given full power and authority to issue all process, civil and criminal, necessary and proper to carry into effect the jurisdiction given to it by law, and its process may be directed for service to any police officer, marshal, or constable of the city, or to the sheriff of the county.
The act prescribes a complete code of procedure and practice in such courts. Section 7 provides that its judge shall be the chief magistrate of the city, and shall see that all criminal laws of the state, and the ordinances, laws, regulations, and by-laws of the city, are observed and executed. The city attorney has charge of the prosecution of all criminal cases for violations of city ordinances, and the county attorney of those for the violation of laws of the state, and, when the defendant is discharged, or acquitted, the city is to pay the costs in the former and the county in the latter. All appeals from the judgments or orders of such courts are taken to the district court, in like manner and subject to the same rules of practice as in appeals from justices of the peace. After thus providing in positive terms for the establishment of a municipal court in every city in the state having a population of less than 5,000, the *382act closes with section 39, which gives rise to the controversy in this case, and which reads as follows:
“Any city in the class mentioned in the title of this act which may wish to avail itself of the provisions of this act shall do so by a resolution of its common council, expressly accepting the provisions hereof, which resolution shall be adopted by vote of four-fifths of all the members of such council, and be approved by the mayor of such city; and this act shall not apply to any such city until the adoption as aforesaid of such resolution.”
It is urged that, in view of the option thus given to each city whether the law shall apply to it, the act is unconstitutional because —First, it is special legislation “regulating the affairs of cities,” within the meaning of section 33, article 4, of the constitution of the state; and, second, that it is a delegation of legislative power to the common councils of cities. A third and subsidiary point, to wit, that it is an amendment of a special act (the charter of East (J-rand Forks) by a special act, is included in the first point, and need not be separately considered.
1. We are of opinion that the act in question is not one “regulating the affairs of cities,” within the meaning of the constitution.
It will be observed that the powers and duties of the courts provided for are purely and exclusively judicial. They have neither administrative nor legislative powers in the affairs of the municipalities. It is true that the judge is chosen by the electors of the city, and the court is to be held within the limits of the city, and is doubtless designed for the special convenience of its inhabitants; but this does not, in any proper sense, render the judge a municipal officer of the city, or the court a department of its municipal government. Its jurisdiction, within the limitations prescribed, is general, and not confined to the city, or to the inhabitants of the city. Although inferior in rank, it is as much a court of the state as is the district or probate court. The fact that it is given exclusive jurisdiction of criminal cases under either state laws or city ordinances, arising or triable within the city, or that its judge is made the “chief magistrate” of the city, does not affect the character of the court, or make it a department of the municipal government. It is one of the courts, inferior to the supreme court, which the legislature is authorized to establish by section 1, article 6, of the constitution of the state.
*383Under this section the legislature had the power, frequently exercised, to establish a local court for the convenience of a particular locality; as, for example, the courts of common pleas in the cities of St. Paul and Minneapolis. This they could do whenever, in their judgment, a necessity for it arose. Although section 33, article 4, of the constitution was adopted subsequently, yet we do not think it has, or was intended to have, the effect of limiting the power of the legislature, under section 1, article 6, to establish courts inferior to the supreme court. Kamsey county is a judicial district by itself. The judges of the district court are chosen by its electors, and are paid in part out of the county treasury. Would it be claimed that an act providing for additional judges of the district court in that county would be an act regulating the affairs of the county, within the meaning of the constitution? Or would an act changing the time of holding terms of the district court in a particular county be a law regulating the affairs of that county? We think not. We fail to see the distinction, in principle, between this case and the cases supposed. The mere fact that, in the exercise of judicial power, a municipal court is given exclusive jurisdiction of prosecution for violations of municipal ordinances, as already suggested, does not'alter the case.
A constitutional provision or a statute must be adhered to and enforced, whether it works well or ill in practice; but this constitutional inhibition against special legislation must receive a reasonable and practical construction, and not be given a strained one, so as to tie the hands of the legislature beyond the intention of the people, as fairly indicated by its terms. Moreover, a cardinal rule in all such cases is that every reasonable doubt must be resolved in favor of the constitutionality of a legislative act. Special circumstances frequently create a necessity for the establishment of a local court in one locality which does not exist in others. It would be very difficult, if not impossible, to meet all these diverse conditions by a general law of uniform operation throughout the state. We could not say that the people, by adopting section 33, article 4, intended to limit the power of the legislature to establish new courts to the enactment of general laws of uniform operation.
2. The remaining question is whether the act delegates legislative power to the city councils.
*384We have neither the time nor the inclination to enter into any extended discussion of the much-mooted question of what does, and what does not, amount to a delegation of legislative power. One of the settled maxims in constitutional law is that legislative power cannot be delegated. It must be exercised by the legislature itself, to whom alone the people have conferred the power to make laws. But it is equally well settled that it is not always essential that a legislative act must in any event take effect as law after it leaves the hands of the legislature. If the law is, in its provisions, a complete statute in other respects when it leaves the legislature, its taking effect may be made conditional upon some subsequent event. When that event happens, the statute takes effect, and becomes the law, by force of legislative action, as fully as if they had unconditionally fixed the time when it should take effect. Such a law is not incomplete.
The only matter not absolutely determined by the legislature is the expediency of its going into operation, and that is made contingent upon the happening of a certain event, or the existence of certain circumstances. There are certain subjects of such a character that the operation of laws in respect to them peculiarly affect certain localities. In such case the willingness of the parties concerned to accept the law or avail themselves of its provisions is often made the contingency upon which its operation is made to depend. This municipal court act is of that character, and the legislature might properly make its operation in a particular city contingent upon the happening of some event or the doing of some act which would indicate the desire of its inhabitants to avail themselves of the provisions of the law. The legislature itself has declared what the law shall be when it takes effect, and also upon what contingency it shall take effect, and when that contingency happens it takes effect by force of the legislative will. This does not amount to a delegation of legislative power.
Order to show cause discharged.