HotDocs Developer Help File
Paste: Pastes the selected text on the Clipboard at the cursor position in the
Find: Displays the Find dialog box where you can specify the word or text string
for which you are searching.
Find Next: Finds the next instance of the word or text string for which you are
Find and Replace: Searches for a specific word or text string and replaces it
with word or text string you specify.
Go To: Displays the Go To dialog box where you can specify the location in the
script to which you want to move your cursor. You can go to either a specific line
or character in the script.
Indent Block: Indents the selected text.
Outdent Block: Realigns the indented text with the left margin of the scripting
box. (If the text has been indented more than once, realigns the text with the
previous tab stop.)
Comment Block: Causes the selected text to become inactive, meaning
HotDocs won't process it when it processes the computation. Often, template
developers "comment out" scripting if they need to close the scripting dialog box
but HotDocs won't let them because the script is invalid. Additionally, developers
often add personal explanations to the scripts they are writing, and commenting
them out keeps the computation operational.
Uncomment Block: Removes any commenting that has been applied to the
selected script. Once the script is uncommented, HotDocs will attempt to process
Options: Displays the HotDocs Options dialog box where you can customize
the way script editing features work.
Help: Opens the relevant page of the HotDocs Help File.
Below this is the Script field in which you can type in the expression. You can also use
your mouse to drag variables, operators, and models from the lists below to this box, or
press Ctrl+Space to have HotDocs display these lists directly in the script so you can use
the keyboard to choose the syntax item you need.
On the left is the Component menu
showing a list of all the components in this template.
You can search it using the find field at the bottom, filter it by selecting a component type
from the drop-down menu at the top or create a new component by clicking on the
Component button. In the center
is a list of useful scripting operators you can drag into
the Expression box. Operators help you compare relationships between items in your
script. They also allow you to perform mathematical calculations on items in your script. At
the right is a list of Expression models
you can use to create a custom expression.
Expressions must result in a true/false value.
For further information on how to use the operators, see Use Operators when
Scripting, and for further information what the expression models do, see Full List
of Expression Models.
If you click the Show Advanced button
you will see a text field at the bottom on the
dialog where you can enter a comment about the IF Field.