Full List of Expression Models
Expression | Description |
Enter a Date | You can use this expression to format your dates correctly as you write computations. |
Enter a Number | You can use the Enter a Number expression to format numbers correctly as you write computations. Numbers in computations and expressions must be in numeric form and cannot contain commas. If you enter a number that contains a comma, it will be removed from the value. Decimals must have one digit to the left of the decimal point, even if it is only a zero. |
Enter some Text | You can use the Enter some Text expression to format a text string correctly as you write computations. When used in computations and expressions, text strings must be inside quotation marks. This expression adds those quotation marks to the text string. |
Enter True or False | You can use this expression to enter a TRUE or FALSE value in a computation or expression script. True/False values must use uppercase letters. |
ABSOLUTE VALUE( NUM ) | Using the ABSOLUTE VALUE expression, you can find the absolute value of a given number. You can calculate a negative number, but have it appear as a positive number. |
AGE( DATE ) | The AGE( DATE ) expression produces an age, in years, by calculating the number of years between the current date (as determined by your computer’s system clock) and a date you provide in the computation script. |
ANSWERED( DIALOG ) | HotDocs can determine whether a dialog has been answered using the ANSWERED expression. Even if only one variable in the dialog is answered, the expression returns a value of true. |
ANSWERED( VAR ) | You can use the ANSWERED expression to determine whether a HotDocs variable has been assigned a value. If so, the expression receives the value of true. |
CEILING( NUM ) | You can use the CEILING function to find the smallest integer that isn't smaller than the Number variable. |
COUNT( DIALOG ) | You can find out how many sets of answers a user provides for a repeated dialog. A repeated dialog is any dialog used in a REPEAT instruction. This expression produces a number, based on each answered dialog. |
COUNT( MULT_CHOICE_VAR ) | This expression counts how many options a user chooses when answering a Multiple Choice variable. The result it produces is a number. |
COUNTER | You can use the COUNTER expression to keep track of the current number of repetitions of a repeated dialog. Each time a user clicks the ![]() |
DATE - NUM DAYS | You can subtract any number of days from a Date variable. The result of this computation is a new date value, which can be merged into the assembled document. |
DATE - NUM MONTHS | You can subtract a certain number of months from a Date variable. The result of this computation is a new date value, which can be merged into the assembled document. |
DATE - NUM YEARS | You can subtract a certain number of years from a Date variable. The result of this computation is a new date value, which can be merged into the assembled document. |
DATE + NUM DAYS | You can add any number of days to a Date variable. The result of this computation is a new date value, which can be merged into the assembled document. |
DATE + NUM MONTHS | You can add any number of months to a Date variable. The result of this computation is a new date value, which can be merged into the assembled document. |
DATE + NUM YEARS | You can add a certain number of years to a Date variable. The result of this computation is a new date value, which can be merged into the assembled document. |
DATE OF( DAY, MONTH, YEAR ) | This expression finds a date value based on day, month, and year values. |
DAY OF( DATE ) | This expression returns the day portion (1 to 31) of a given date. |
DAY OF WEEK( DATE ) | This expression determines on which day of the week a specific date falls and converts that value to an integer. |
DAYS FROM( START, FINISH ) | This expression allows you to find the number of days between two dates. |
This instruction allows you to create an error message that can appear during the interview. |
|
EXPONENTIAL( NUM ) | An EXPONENTIAL function is a function that quickly accelerates, where the Number variable is the exponent of e (roughly 2.71828), and it can be used in calculating exponential growth. |
FIRST( TEXT, NUM ) | Using this expression, you can return any number of characters starting with the first character in an answer value. |
FLOOR( NUM ) | You can use the FLOOR function to find the largest integer that isn't bigger than the Number variable entered. |
FORMAT( VALUE, "EXAMPLE" ) | Sometimes you may need to add a date, number, or true/false value to a text value. You can do this by formatting the date, number, or true/false value as text. |
FUTURE VALUE (RATE, TERM, PAYMENT, PRESENT VALUE, TYPE) |
The HotDocs financial expressions can be used in templates that work with calculating savings, loans or investment values. If you know the rate, term, payment, present value and type of a savings scheme or loan you can use the FUTURE VALUE function to work out how much the final amount will be after interest. |
INTEGER( TEXT ) | Sometimes you may have a text value that contains number characters, as in the case of a time of day value. The INTEGER expression allows you to convert those number characters into numeric values so you can perform calculations or compare them with other values. |
LAST( TEXT, NUM ) | The LAST expression finds and returns a certain number of characters from the end of a text string. |
LENGTH( TEXT ) | The LENGTH expression counts the number of characters—including spaces and punctuation—in a text value, such as a Text variable. |
LOGARITHM( NUM ) | The LOGARITHM function will find the common logarithm of a Number variable. You can use it to find the exponent of 10 that would be needed to make the Number variable entered. |
MAX( NUM, NUM ) | The MAX expression compares two number values and returns the greater of the two. |
MID( TEXT, NUM, NUM ) | Like the FIRST and LAST expressions, this expression extracts a specified number of characters from within a text string. |
MIN( NUM, NUM ) | The MIN expression compares two number values and returns the lesser of the two. |
MONTH OF( DATE ) | This expression returns the month portion of a given date. |
MONTHS FROM( DATE, DATE ) | The MONTHS FROM expression calculates the number of months between two given dates. |
MULT_CHOICE=TEXT; MULT_CHOICE!=TEXT | The MULT_CHOICE = TEXT expression returns true when the user chooses a Multiple Choice option that is equal to ( = ) a given text value. If it is not equal ( != ), the expression returns false. The MULT_CHOICE != TEXT expression functions in the opposite way—testing instead to see if an answer is not equal to ( != ) a given text value. |
NATURAL LOGARITHM( NUM ) | You can use the NATURAL LOGARITHM function to find the exponent of e (roughly 2.71828) that would be needed to make the Number variable entered. |
NOT TRUE_FALSE | You can use the NOT TRUE_FALSE expression to find out if a True/False variable is false. |
OTHER( MULT_CHOICE_VAR ) | This expression determines whether the user has chosen the Other option of a Multiple Choice variable and, if so, returns the text entered in the Other field. It can also be used to test whether the user has selected the None of the Above option. |
PAYMENT (RATE, TERM, PRESENT VALUE, FUTURE VALUE, TYPE) |
The HotDocs financial expressions can be used in templates that work with calculating savings, loans or investment values. If you |