ASCEND VAR; DESCEND VAR

PlaceholderA marker in an instruction or expression model that indicates where a value must be substituted. This value must be a literal value or a variable. Instruction and expression models help the developer use the correct syntax in a script. Replace With
VAR A repeated 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.

The ASCENDThe process of sorting answers in alphanumeric order, from 1 to 9, and from A to Z. (See also descend.) You can also sort items in a template library, clause library, and answer library. 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. sorts lists of answers (gathered using a REPEAT instruction) in alphanumeric orderThe process of designating the sequence in which form template fields are asked in the tab order. Establishing this order in a form is important for users who directly fill the form document., from 1 to 9, and from A to Z. The DESCENDThe process of sorting answers in reverse alphanumeric order, from 9 to 1, and from Z to A. (See also ascend.) instruction sorts lists of answers from 9 to 1, and from Z to A.

For example, the following scriptOne or more instructions and/or expressions that generate a value or execute some kind of procedure. would insert a listTwo or more answers to one question merged in the document. of clients in alphabetical order, from A to Z. Even though it lists Client First Name first, it sorts by Client Last Name:

"" REPEAT Client Information

ASCEND Client Last Name

RESULT + Client First Name + " " + Client Last Name + "

"

END REPEAT

The first empty set of quotation marks sets the computation valueIn an interview, it represents a user's answer. In a script, it represents data that must be used in executing the script. (The value can either be a literal value or a user's answer.) to nothing. Then, the repeated dialogIn template development, represents the component in which the developer groups variables and other components. In document assembly, represents the group of questions in the Interview tab of the assembly window where users enter their answers., Client Information, asks for each client’s first and last name. Next, the ASCEND instruction sorts the list of names by last name. Finally, the RESULT expressionA command in a script that retrieves a special value. Expressions help calculate dates, sums, and so forth. tells HotDocs to merge the names in the documentThe file that is created after a template has been assembled..

The ASCEND and DESCEND instructions can only sortThe process of alphabetizing answers in a repeated list or items in a library. Sorting can be done in ascending or descending order. on a single variable; however, you can sort multiple variables by including multiple ASCEND or DESCEND instructions.