Modifying a Conditional Region to Include or Exclude Blocks of Text
You can modify a conditional region to include ELSE, ELSE IF, and additional IF instructions.
You cannot use an IF instruction to condition a table that appears within another table. For example, if you have a table which contains another table within one of its cells, you cannot use a condition to remove the embedded table during assembly. (If you do, HotDocs only removes the text from the table and leaves the empty table in the assembled document.)
To use IF and ELSE instructions to conditionally include a block of content or its alternative
You can also add ELSE or ELSE IF instructions when you click on an END IF field and then click Modify or when you place the curser between an existing IF and END IF pair and click Modify a conditional region.
- Under Field Type, click ELSE.
- Click Add Field. HotDocs inserts an ELSE instruction before the content you selected and an END IF at the end of the selection.
If the condition in the IF field is not met, the piece of text surrounded by the Else condition appears in the final document instead.
To use IF and ELSE IF instructions and variables and computations to conditionally provide differing blocks of content
You can also add ELSE or ELSE IF instructions when you click on an END IF field and then click Modify or when you place the curser between an existing IF and END IF pair and click Modify a conditional region.
you want to appear if the preceding conditions are not met but another set of specific conditions is.
- Under Field Type, click ELSE IF.
- Under Condition Type, choose a variable type or computation, then set the condition that makes the ELSE IF condition true by clicking in and providing a value for the following (as applicable):
- Variable or computation name
- Comparison
- Value
When the conditions in an ELSE IF . put them together in a single-selection group in a dialog
- Add Field HotDocs inserts an ELSE IF instruction before the content you selected and an END IF at the end of the selection.
- R
To use IF and ELSE IF instructions and expressions to conditionally provide differing blocks of content
- you want to appear if the preceding conditions are not met but another set of specific conditions is.
You can also add ELSE or ELSE IF instructions when you click on an END IF field and then click Modify or when you place the curser between an existing IF and END IF pair and click Modify a conditional region.
- Under Field Type, click Else If.
- Under Specify a condition type, click Expression.
- In the Expression field, type an expression script which, when true, causes HotDocs to display the text you selected.
For example, the following is an expression that tests three different conditions: 1) the client must be married, 2) the client must be over age 25, and 3) the client must live in Pennsylvania: Client is Married AND AGE( Client Birth Date ) > 25 AND Client State= "Pennsylvania".
- Add Field HotDocs inserts an ELSE IF instruction before the content you selected and an END IF at the end of the selection.
- R
You can nest one or more IF instructions within another IF instruction.