QUIT Instruction

The QUIT instruction stops HotDocs from processing any remaining script in the component.

If you are working on a script and leave it in an unfinished state, HotDocs displays an error message and will not run a test interview. You can use the QUIT instruction to stop HotDocs from processing the script after the instruction, which enables you to still test and use the preceding script without seeing an error.

Alternatively, you can use the Comment Block button on the script tab to hide unfinished work or notes.

Instruction name Model After you drag and drop the model into the script tab:
QUIT QUIT You don't need to do anything further with this model.

Example

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

Download

After you download the example template, you can import the template to any workspace to see this example code in action.