Placeholder | Replace With |
num_var | A Number variable |
The increment and decrement instructions cause HotDocs to increase or decrease a number variable, usually a counter, by the value of 1.
In the following example, you want to create a list of potential employees. However, you want the list to include only those applicants with four or more years of schooling. To do this, you would use the while instruction to loop through a list of applicants. You would then use the increment instruction to keep track of which repetition you are on so that the correct information can be merged into a new list.
set ApplicantCount to 1
set ProspectCount to 0
while answered( ApplicantName[ApplicantCount] )
if ApplicantYearsOfSchooling[ApplicantCount] >= 4
set ProspectName[ProspectCount] to ApplicantName[ApplicantCount]
endIf
increment ApplicantCount
endWhile