QUIT

The QUIT instructionA command in a script or template that performs a special task, such as inserting a template or asking a dialog at a specific place in the interview. allows you to close the variableA component that is used to represent changeable text (such as names, dates, numbers, etc.) in the template. Types of variables include Text, Date, Number, True/False, Multiple Choice, Computation, and Personal Information. 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 scriptOne or more instructions and/or expressions that generate a value or execute some kind of procedure.. The instruction is usually placed at the beginning of an unfinished or invalid computation.

For example, perhaps you aren't sure about the specific variable names that need to be included because the variables have not yet been created. Normally, HotDocs won’t allow an unfinished script to be saved. The QUIT instruction, though, makes this possible:

QUIT

IF Client History = "____"

SET ____ TO "Returning"

ELSE

SET ____ TO "New"

END IF

Another useful place to include a QUIT instruction is at the end of a computation, which allows you to enter "developerSee template developer. commentsNotes or thoughts entered by the template developer either in a script or in a template. Comments are one way to document processes within the template. If entered correctly, they will not be visible to users in the assembled document." about the computation script. You can also apply a comment block to the section of the script you don't want processed. To do this, select that section of the script and click the Comment Block button. (To uncomment the script, click the Uncomment Block button.)

If you use a QUIT instruction in a script, it will cause all the scripting after the instruction to lose its syntaxThe language used in writing scripts. For a script to work properly, the script must be written in a way that HotDocs can understand. This language consists of instructions, expressions, operators, and values (such as text, numbers, dates, or answers users enter).-aware formatting. To restore this formatting once you remove the QUIT instruction, click the Auto Format button.