How to add conditionals in your agreement template

For example, if you want to display a checkbox if a user custom field agreeTerms is true or false

Then in your agreement, add this:
Agree with Terms: <% if (user.customFields.agreeTerms != '') { %>Yes<%} else { %> No<%}%>
How to add conditionals in your agreement template