﻿ A 'Legal' Example

# A 'Legal' Document Logic Example

Below is a short sample document incorporating a few of the above features. It results in a set of reciprocal Husband and Wife Wills. It is based on the same text presented in the 'Dynamic Creation of Variables' section of the Manual, with more of the document logic features of Pathagoras added. Each of the major features shown in blue links to the section of this Manual that defines and further illustrates them.

Features in use:

Notes: AskOptions can be created automatically from the existing <<*Options*. . .>> blocks and placed in an attractive table at the top of the document. Click the above link to see how. Here, the prompt is used to determine which of the Will is to be created first. The !GroupName! allows the answer at the top to 'affect' the Options block further down in the document.

Notes: Here, the prompt used to determine if the "Minor Children" question should even be asked. If there are children, no sense in asking if there are  minor children.

<<*AskRepeats*>> with series connectors and !Groups!

Note that once the number of children is determined, it is used in 2 distinct ways. One way is to repeat the raw value an  appropriate number of times against the variables '[Child@Name]' and '[Child@DOB]'. When attached to an <<*Options*>> block, the 'other way' kicks in. Rather than repeating a variable, it selects a phrase depending upon where there are '0' children, '1' child or '2 or more' children.

You can copy the sample text in the box below by placing your cursor inside the box, pressing Ctrl-A (to select 'all' and then Ctrl-C (for 'copy'). Then paste the text into a document (Ctrl-V) (this one has no mnemonic equivalent) . Process the page (Alt-P) to see how it all comes together.

 <<*AskOptions*!Whose Will!First Is Husband's/First Is Wife's*>> <<*AskOptional*!Children!Are there children?*>> <<*If*!Children!="Yes",<<*AskRepeat*!NumChildren!How many children*>>,!minors!="No">> <<*If*!Children!="Yes",<<*AskOptional*!Minors!Are there minor children*>>,!minors!="No">>   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. <<*Optional*!Children!*If my <<*Options*!Whose Will!*wife/husband>>, does not survive me, I give all of my property to my <<*Options*!NumChildren!*/child/children <<*Repeat(and)*!NumChildren!*[Child@Name], born [Child@DOB]>>.>>>>       3. I appoint my <<*Options*!Whose Will!*wife/husband>>, <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>> to be my Personal Representative.       4. <<*Optional*!Minors!*If at the time of my death I have any minor children, I appoint [Names of Guardians] to be the Guardians of such minor children.>>                                                                                                          ________________________                                                             <<*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. <<*Optional*!Children!*If my <<*Options*!Whose Will!*husband/wife>>, does not survive me, I give all of my property to my <<*Options*!NumChildren!*/child/children <<*Repeat(and)*!NumChildren!*[Child@Name], born [Child@DOB]>>.>>>>       3. I appoint my <<*Options*!Whose Will!*husband/wife>>, <<*Options*!Whose Will!*[Husband Name]/[Wife Name]>> to be my Personal Representative.       4. <<*Optional*!Minors!*If at the time of my death I have any minor children, I appoint [Names of Guardians] to be the Guardians of such minor children.>>                                                                ________________________                                                             <<*Options*!Whose Will!*[Wife Name]/[Husband Name]>>

See these other examples:

Mixing 'Standard' and 'Simplified' Options Blocks

'Repeat' Blocks

Created with Help & Manual 7 and styled with Premium Pack Version 2.70 © by EC Software