Full List of Instruction Models
Instruction | Description |
ADD TEXT TO MULT_CHOICE_VAR; CLEAR MULT_CHOICE_VAR | These instructions allow you to modify options of a Multiple Choice variable . The CLEAR instruction removes all the current options, and the ADD instruction adds options to the variable. |
ASCEND VAR; DESCEND VAR | The ASCEND instruction sorts lists of answers (gathered using a REPEAT instruction) in alphanumeric order , from 1 to 9, and from A to Z. The DESCEND instruction sorts lists of answers from 9 to 1, and from Z to A. |
ASK DIALOG | The ASK DIALOG instruction allows you to control the order in which dialogs appear in an interview . (See Control When Your Dialogs Appear.) |
ASK VAR | Sometimes a variable needs to be asked by itself. You can use the ASK VAR instruction so that during the interview, HotDocs displays the variable in its own default dialog. |
ASSEMBLE "FILENAME" | You can use the ASSEMBLE instruction to add templates to the assembly queue . Unlike the INSERT instruction, an ASSEMBLE instruction waits until the current document is assembled before starting the next assembly session. |
CONCEAL VAR | This instruction, which you use in a dialog script , keeps variables from appearing in the Select From Answer Source dialog box of an answer source. |
DEBUG | This instruction steps through the template or script field by field or line by line. It helps you determine why the template you are automating (or the script you are writing) is producing results you don't expect. |
DEFAULT VAR TO VALUE | This instruction suggests a value for a variable if the variable is unanswered. |
ERASE VAR; ERASE DIALOG | The ERASE instructions let you clear answers in a dialog. Specifically, ERASE VAR clears answers for a specified variable in a dialog, while ERASE DIALOG clears all answers in the dialog. This may be useful when you are using a temporary dialog to store lists of answers from two or more dialogs. |
FILTER COMPUTATION_VAR | The FILTER instruction filters out certain entries from a repeated list , based on conditions you specify. |
FORMAT "LIST_FORMAT" | The FORMAT "LIST_FORMAT" instruction allows you to create a sentence-style list within a computation. (If you create the REPEAT instruction using a REPEAT field, you can specify the list format by choosing a style from the Format drop-down list. See Punctuate a Sentence-Style List.) |
GRAY ALL; GRAY VAR; UNGRAY ALL; UNGRAY VAR | These instructions, which are used in a dialog script, control whether components in a dialog appear grayed or ungrayed, depending on answers a user enters. GRAY ALL dims all components in the dialog, while UNGRAY ALL makes all of the components active again. Likewise, GRAY VAR dims a single component , and UNGRAY VAR enables the component again. |
HIDE ALL; HIDE VAR; SHOW ALL; SHOW VAR | These instructions, which are used in a dialog script, control whether the user is able to see variables in a dialog. The HIDE ALL instruction hides all variables in the dialog, while SHOW ALL reveals the variables again. Likewise, HIDE VAR hides a single variable, and SHOW VAR reveals the variable. |
IF EXPRESSION; ELSE IF; ELSE; END IF | You can make sections of templates or scripts conditional by using IF instructions. A conditional section will be included only if a condition you specify is true. The ELSE IF instruction allows two or more conditions to be included in an IF instruction. The ELSE instruction establishes a final condition for an IF instruction, specifying that if all preceding conditions are false, the following information should be included. It must be the last item of the IF instruction. |
INCREMENT NUM_VAR; DECREMENT NUM_VAR | The INCREMENT and DECREMENT instructions cause HotDocs to increase or decrease a number variable , usually a counter , by the value of 1. |
INSERT "FILENAME" | This instruction inserts a clause , a clause library , or a template into the document currently being assembled. When HotDocs encounters an INSERT instruction, it immediately processes the instruction and inserts the template, clause, or clause library into the current document. If there are variables to be answered, HotDocs presents them before finishing the interview of the main document. |
LANGUAGE CODE | This instruction tells HotDocs to format numbers and dates in a particular language. |
LIMIT NUM | The LIMIT instruction limits the number of times a dialog can be repeated. It is placed in the script of the dialog that must be limited to a specific number of repetitions. |
OMIT VAR | The OMIT VAR instruction, which you use in a dialog script, keeps variables from appearing in the Edit Answer Source dialog box of an answer source. |
PLAY "MACRO" | The PLAY "MACRO" instruction plays a word processor macro after the document is assembled and either sent to the word processor, printed, or saved. |
QUIT | The QUIT instruction allows you to close the variable without losing the work you have done. Normally, HotDocs will not save an invalid computation. The only way to exit an invalid computation is to click Cancel, which erases the script. The instruction is usually placed at the beginning of an unfinished or invalid computation. |
REPEAT DIALOG; END REPEAT | A REPEAT instruction gathers lists of answers and merges them into a document. |
REQUIRE ALL; REQUIRE VAR | The REQUIRE instruction requires users to answer questions in a dialog before they can advance to the next dialog in the interview. |
SET VAR TO VALUE | 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. |
WHILE EXPRESSION; END WHILE | The WHILE EXPRESSION instruction allows you to repeatedly process (or loop through) an answer or set of answers until a certain condition is met, such as a certain answer is found or a limit is reached. |