HotDocs Scripting Language Syntax
In any language, syntax refers to the set of rules that govern the structure of that language, and how the elements of the language interact to create coherent thoughts; the same is true of the syntax in the HotDocs scripting language. For example, the syntax of the HotDocs scripting language includes using the equals sign (=) to compare two values.
Operators
Syntax Element |
Category |
What the syntax enables you to do |
Example |
= |
Operator |
Compares two values.
All text comparisons in HotDocs Scripting are case insensitive.
A List comparison first checks for the type of the item in the list, then it checks its value.
|
TextVarA = TextVarB |
+ |
Operator |
Adds two number values together, also concatenates two text values or two compatible list values together. |
5+2 |
Lists
Syntax Element |
Category |
What the syntax enables you to do |
Example |
. |
Operator |
Enables you to access the data contained in the cell of a table or a value you access using a Selection variable.
|
SelectionVarA.Name |
Marker Fields
Marker fields enable you to format text after assembling a document. For the syntax of the individual marker fields, see the Full List of Marker Fields.
Syntax Element |
Category |
What the syntax enables you to do |
Example |
[.charactercode] |
field |
Enables you to insert characters, sentence and list punctuation or web links, or to format text, post document assembly. |
[.] – period |