HotDocs Models: sum( num_var )

Placeholder Replace With
num_var A repeated Number variable

Using the sum expression, you can add repeated number values.

In this computation script, HotDocs totals the values of the repeated Number variable MonthlyPayment:

sum( MonthlyPayment )

In the next example, HotDocs then takes the total monthly payments the user is making and compares it to the user’s monthly income. If the monthly payments are greater than 36 percent of the monthly income, the loan application is rejected:

sum( MonthlyPayment ) > ( MonthlyIncome * 0.36 )