Dynamic Creation of Variables
|
|
||
Combining the techniques and principals set out in the above sections allow you some pretty powerful tools.
| • | Dynamic creation of variables |
Let's say that you need two 'identical' documents for two people whose information is stored in a single data record. (A classic example of this would be reciprocal Wills one for the Husband and a substantially identical one for the Wife.) You could create two separate Wills (one for each) and use "[Testator]" and "[Spouse]" as the variables to identify the necessary parties templates.
But let's now say that you want to create both wills at the same time. By using <<*Options*>> text block in conjuction with a !GroupName!, you can cause Pathagoras to dynamically select the variables. Here is an example: <<*Options*!Whose Will!*[Husband Name]/[Wife Name]>>
With this setup, you could create both Wills in the same document. (To insert the proper 'other spouse' variables, simply reverse the listing of the variables, thusly, <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>>.
The table below presents a 'fuller' example of the above. Note that upon the selection of the first Option (which contains the !Who's Will! group, all variables are properly selected and ready for completion. This example can be copied from here and pasted into a Word document. Then. 'process' the document from the screen to cause Pathagoras to act on the <<*Options*>> blocks. The resulting document will be a 'perfect' reciprocal Will set, with all variables in their proper places.
Last Will and Testament of <<*Options*!Whose Will!*[HUSBAND NAME]/[WIFE NAME]>> I, <<*Options*!Whose Will!*[Husband Name]/[Wife Name]>>, being of sound mind, make this document my Last Will and Testament. 1. I give all of my property and estate to my <<*Options*!Whose Will!*wife/husband>>, <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>> 2. I appoint my <<*Options*!Whose Will!*wife/husband>>, <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>> to be my Personal Representative.
________________________ <<*Options*!Whose Will!*[Husband Name]/[Wife Name]>> ======Page Break======= Last Will and Testament of <<*Options*!Whose Will!*[WIFE NAME]/[HUSBAND NAME]>> I, <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>>, being of sound mind, make this document my Last Will and Testament. 1. I give all of my property and estate to my <<*Options*!Whose Will!*husband/wife>>, <<*Options*!Whose Will!*[Husband Name]/[Wife Name]>>. 2. I appoint my <<*Options*!Whose Will!*husband/wife>>, <<*Options*!Whose Will!*[Husband Name]/[Wife Name]>> to be my Personal Representative.
________________________ <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>> |
| • | Dynamic creation of 'identical' variables. |
Pathagoras offers another type of dynamic creation of variables in its <<Repeat>> function. That function allows you to create multiple instances of essentially the same variable, but each resulting variable is properly 'incremented' to take into account multiple members of the group. This is discussed more fully (and with examples) at this link.
| • | Dynamic selection of documents |
Instead of using <<*Options*>> and !Groups! to dynamically select the proper [variable] for a particular document, <<*Options*>>/!Groups! can lead to the selection and automatic insertion of a clause (or an entire document). This ability of Pathagoras to insert the content of text in this fashion is discussed more fully (and with examples) at this link.
| • | A "Big" Example |
To see a larger example of the above, with many more Pathagoras elements in play, click here.