Back to List
As you write computations, you often need HotDocs to acknowledge what the result would be at that point in the script. You can update this answer by using the result expression.
For example, let’s suppose you are creating a list of editors. You want to combine EditorFirstName and EditorLastName as well as the literal text Editor. You must use result to force HotDocs to acknowledge the result of the computation before you add the next item to the text string:
""
repeat EditorInformation
result + EditorFirstName + " " + EditorLastName + ", Editor" + "
"
endRepeat
In this computation, the result expression returns the value of EditorFirstName and adds it to the value of EditorLastName. The resultexpression updates the list each time a new editor is added to the list. (If no result expression were used, HotDocs would merge just the first name entered in the list.)
Back to List