When a suit is commenced to foreclose a lien securing a debt payable in installments, either of interest or principal, and any of such installments is not then due, the court shall enter a judgment for the foreclosure of the lien, and may also include in the judgment a requirement that the property be sold for the satisfaction of the whole debt, or so much thereof as may be necessary to satisfy the installment then due, with costs of suit. In the latter case, the judgment of foreclosure as to the remainder of the property may be enforced by an order of sale, in whole or in part, whenever default occurs in the payment of the installments not then due.
ORS 88.090