Back to List
Placeholder | Replace With |
var | Any variable |
value | A value appropriate for the associated variable |
This instruction lets you specify a given value for a variable’s answer automatically, rather than allow the user to specify an answer. With the set instruction, you can transfer names and other values from one variable to another.
For example, if the plaintiff is the same as the client, you can use a set instruction to automatically enter the plaintiff’s name as the client’s, saving the user from typing the name a second time:
if IsPlaintiffAlsoClient
set ClientName to PlaintiffName
endIf
Because HotDocs repeatedly processes set instructions during the course of an interview, you must not let the user specify a different answer for a variable whose value is being set. When HotDocs updates the interview, the user’s answer will be replaced with the value from the set instruction. To suggest an answer for the user and allow them to change it, use the default instruction. (See default var to value for an explanation.)
Back to List