DOCUMENT Revocation PROVIDES
IF all former testamentary disposition are to be revoked THEN
NUMBERED PARAGRAPH I revoke all former testamentary dispositions.
ELSE
NUMBERED PARAGRAPH I revoke all former testamentary dispositions
except clause(s) <list of clauses from the old will which are to be
saved> of my testamentary disposition dated <the date of the old will>
which clause(s) I hereby confirm.
[NUMBERED] [LEVEL number] [PARAGRAPH|TEXT] text
PARAGRAPH I revoke all former testamentary dispositions
except clause(s) <list of clauses from the old will which are to be
saved> of my testamentary disposition dated <the date of the old will>
which clause(s) I hereby confirm.
The example given above and on the previous page will generate the following dialogue:
1) Are all former testamentary disposition to be revoked ?
** n
2) What is list of clauses from the old will which are to be saved?
** 1, 5 and 17
3) What is the date of the old will ?
** 1 May 1993
REPORT
1. I revoke all former testatmentary dispositions except clause(s)
1, 5 And 17 of my testamentary disposition dated 1 May 1993 which
clause(s) I hereby confirm.
PARAGRAPH I revoke all former testamentary dispositions.
I give all my property to my husband.
will be generated as:
I revoke all former testamentary dispositions. I give all my property to my husband.
The correct code to cause the second sentence to be a new paragraph is:
PARAGRAPH I revoke all former testamentary dispositions.
PARAGRAPH I give all my property to my husband.
DATE the date of the old will
STRING list of clauses from the old will which are to be saved
will not cause DataLex to ask the user for values in a rule where angle brackets have been omitted, such as
PARAGRAPH I revoke all former testamentary dispositions
except clause(s) list of clauses from the old will which are to be
saved of my testamentary disposition dated the date of the old will
which clause(s) I hereby confirm.
It is necessary to put attributes in angle brackets (< >); merely making them named subjects is insufficient.
However, merely putting an attribute in angle brackets does not give it a type - to do so it is necessary to declare it as a named subject as well. For example, in the dialogue above, an answer 'a few weeks ago' to the question 'What is the date of the old will ?' will be accepted. In contrast, if the declaration 'DATE the date of the old will' had been made, the following dialogue will occur:
3) What is the date of the old will ?
** a few weeks ago
Please respond with a date.
It is preferable to declare all embedded attributes as named subjects, as well as embedding them in angle brackets, so as to ensure that the user always gives the correct type of answer (eg a date).
DOCUMENT Revocation PROVIDES
IF all former testamentary disposition are to be revoked THEN
NUMBERED PARAGRAPH .......Alternative text (1).......
ELSE
NUMBERED PARAGRAPH ........Alternative text (2)........
Because of the use of the IF-THEN-ELSE statement, which version of the clause is generated depends upon the value of the attribute ‘all former testamentary disposition are to be revoked’. The user will be prompted for a value for this attribute by being asked ‘Are all former testamentary disposition to be revoked?’. If the user answers ‘yes’, then text (1) will be generated, but otherwise (ELSE) text (2) will be generated.
By the use of IF-THEN-ELSE statements, and any other conditional statements used in DataLex, templates for complex documents may be created.
GOAL DOCUMENT Last Will & Testament PROVIDES
the date of execution of the will IS today
CALL Preamble
CALL Revocation
CALL Contemplation of Marriage
By use of the CALL statement, this rule calls three other rules in succession, those with the names ‘Preamble’, ‘Revocation’ and ‘Contemplation of Marriage’. In effect, it provides that this is the correct order of assembly of the clause of this document. The names following CALL must match the names of DOCUMENT rules.
The use of CALL statements may also be made conditional. For example, where a clause generated by a rule named 'Revocation' can only be used if a particular section of an Act applies (eg the Contracts Act s17), then the following CALL statement could be used:
IF s17 Contracts Act applies THEN CALL Revocation
DATE the date of execution of the Will
DATE the date of the old Will
INTEGER the maximum number of months within which the wedding must take place
PERSON the person making the Will
PERSONTHING the sole beneficiary
PERSON the sole executor
PERSON the testator/testatrix's fiancee
PERSON the joint beneficiaries
GOAL DOCUMENT Last Will & Testament PROVIDES
IF the person making the Will is legally capable of making a Will THEN BEGIN
CALL Disclaimer
CALL Preamble
CALL Revocation
CALL Contemplation of Marriage
CALL Sole Beneficiary
CALL Attestation END
ELSE the person making the Will should not make a Will
RULE Capability PROVIDES
the person making the Will is not legally capable of making a Will ONLY IF the person making the Will is not of sound mind
OR s6 of the Wills, Probate and Administration Act 1898 applies OR the person making the Will is subject to some other form of incapacity
DOCUMENT Disclaimer PROVIDES
PARAGRAPH Disclaimer: This is not a real Will and must not be used as such.
This will does not purport to accurately represent the law of any jurisdictions.
DOCUMENT Preamble PROVIDES
PARAGRAPH This will dated <the date of execution of the Will> is
made by me <the person making the Will>, of
<the testator/testatrix's address>, <the testator/testatrix's occupation>.
DOCUMENT Revocation PROVIDES
IF all former testatmentary disposition are to be revoked THEN
NUMBERED PARAGRAPH I revoke all former testatmentary dispositions.
ELSE
NUMBERED PARAGRAPH I revoke all former testamentary dispositions
except clause(s) <list of clauses from the old will which are to be
saved> of my testamentary disposition dated <the date of the old Will>
which clause(s) I hereby confirm.
DOCUMENT Contemplation of Marriage PROVIDES
IF this Will is to be made in contemplation of marriage THEN
IF the Will is to be conditional on the marriage actually
taking place THEN
IF the person making the Will is domiciled in Western Australia AND
the person making the Will does not own immovables in other States
THEN
NUMBERED PARAGRAPH This will is made in
contemplation of my marriage with
<the testator/testatrix's fiancee>.
ELSE
NUMBERED PARAGRAPH This will is made in
contemplation of my marriage with
<the testator/testatrix's fiancee>
and is conditional on the marriage taking place
within <the maximum number of months within which the wedding must take place> months.
ELSE IF the testator/testatrix is domiciled in Western Australia THEN
NUMBERED PARAGRAPH This will is made in contemplation of my
marriage with <the testator/testatrix's fiancee>
but shall not be void if the marriage does not take place.
ELSE
NUMBERED PARAGRAPH This will is made in contemplation of my
marriage with <the testator/testatrix's fiancee>
but is not conditional on the marriage taking place.
DOCUMENT Sole Beneficiary PROVIDES
IF everything disposed of under the Will is to be left one person THEN BEGIN
IF the sole beneficiary is over 18 THEN
NUMBERED PARAGRAPH I give the whole of my estate to <the sole beneficiary>
whom I appoint my sole executor. ELSE BEGIN
NUMBERED PARAGRAPH I give the whole of my estate to <the sole beneficiary>
NUMBERED PARAGRAPH I appoint the <the sole executor> as my sole executor. END
END ELSE BEGIN NUMBERED PARAGRAPH I give the whole of my estate in equal shares to <the joint beneficiaries>
NUMBERED PARAGRAPH I appoint the <the sole executor> as my sole executor. END
DOCUMENT Attestation PROVIDES
PARAGRAPH Signed by the testator in our presence and attested by us in the presence of him and each other.