In my opinion the complaint contains two causes of action, one to recover on the bond, and the other, if the execution on the personal judgment be returned unsatisfied, to foreclose the mortgage. This is the relief sought, and the prayer for judgment may be properly considered in determining the nature of the action set forth in the complaint. Swart v. Boughton, 35 Hun, 284. The rule that when equity has obtained jurisdiction it may adapt the relief to the exigencies of the case does not apply to an action of foreclosure which is purely statutory. Dudley v. Congregation, 138 N. Y. 458. The two causes of action, one in law and one in equity, are improperly joined, and the demurrer must be sustained, with costs, with the usual leave.
Demurrer sustained with costs, with usual leave.