Using 'Repeat' value for Options

   When you ask for the number of repeats for a specific block of text, Pathagoras will record the number of repeats and apply the result to other repeat blocks throughout the document.

   But the repeat value can also help with 'options' text block. For example, if there are no children of the marriage, Pathagoras can choose clause 'A'; if there is one child, clause 'B'; and if there are 2 or more children, choose clause 'C'. that. The logic is that if the 'repeat' value is 0, the first position in the Options list is chosen. If the repeat value is "1', the second position in the Options list is chosen; if the repeat value is 2 or more, the third position in the Options list is chosen.

    Let's illustrate with some sample text:

<<*AskRepeat*!Children!*>>        

<<*AskRepeat*!Bene!*>>                    

(The above would appear at the top of the document. Pathagoras will always ask 'Ask' blocks first.)

 

Last Will and Testament of

[Testator Name]

. . .

A. Family: <<*Options*!Children!*I have no children/I have one child whose name is/I have <<*Repeat(return,two)*!children!*>> children and their names are <<*Repeat(and)*!children!*[Child]>>>>.

. . .

<<*Options*!Children!*/

G. All trust assets shall be distributed to my child named in paragraph A if that child is alive at the time of my death. If my child is not alive at the time of my death, but has surviving descendants, the share that would have gone to such child shall be distributed to such child’s descendants, per stirpes./

G. All trust assets shall be distributed to each child named in paragraph A if that child is alive at the time of my death. If a child of mine is not alive at the time of my death, but has surviving descendants, the share that would have gone to such child shall be distributed to such child’s descendants, per stirpes.>>

<<*Options*!Children!*

H. All assets shall be distributed to <<*Repeat(and)*!Bene![AltBenef Name]  residing at [AltBenef Address]>>, if that beneficiary is alive at the time of my death<<*Options*!Bene!*// ,in equal shares>>. If a named beneficiary should not survive me, such shares shall be distributed to such beneficiary’s descendants, per stirpes./

H. If my child named in paragraph A, and no descendant of such child, shall survive me, all assets shall be distributed to <<*Repeat(and)*!Bene![AltBenef Name]  residing at [AltBenef Address]>>, if that beneficiary is alive at the time of my death<<*Options*!Bene!*// ,in equal shares>>. If a named beneficiary should not survive me, such shares shall be distributed to such beneficiary’s descendants, per stirpes./

H. If no child named in paragraph A, and no descendant of any such child, shall survive me, all assets shall be distributed to <<*Repeat(and)*!Bene![AltBenef Name]  residing at [AltBenef Address]>>, if that beneficiary is alive at the time of my death<<*Options*!Bene!*// ,in equal shares>>. If a named beneficiary should not survive me, such shares shall be distributed to such beneficiary’s descendants, per stirpes.>>

 

 

Note the following.

   If the '0' choice is to be 'nothing' (i.e., no text) just type a slash indicating 'no text.'

   Paragraph A. contains 3 options that will be processed based on the number of children selected with the AskRepeat call. Notice that the text that will be returned is not based on the 'position' of the AskRepeat number. That is, if '1' is the response to the ask repeat, the Option in position #1 is not what will be returned. When you study the example, you will see that that would make no sense. Read on:

EXCEPTION TO THE "POSITION" RULE" Normally, !grouped! options are processed by ‘position’. Whether you select the 1st member of the group or the 15th, the same ‘position’ of other members of the group is selected. However, when Repeats are !grouped! with an <<*Options*>> block, the selected option is processed based on an analysis of the actual number provided.

  Zero: If the ‘repeat’ number is 0, the option text in position 1 of the <<*Options*>> block with the same !groupname! is processed.

  One: If the ‘repeat’ number is 1, the option text in position 2 of the <<*Options*>> block with the same !groupname! is processed.

  Two or more: If the ‘repeat’ number is 2 or higher, the option text in position 3 of the <<*Options*>> block with the same !groupname! is processed.

  There is a real logic behind this operation and it deals with noun/verb pairings:

  If there are ‘none’ of something, the plural is used to describe this ‘nothingness.’

  If there is 'one' of something, the singular is used.

  If there are '2 or more', the plural is used.

  For example:

“There are no children. There is one child. There are 3 children.”

   Further, the actual text (if any text is provided at all) may vary greatly based on the number of children, shareholders, quantity ordered, etc.

  So, when using the same !groupname! with a <<*Repeat*>> block and an <<*Options*>> block, simply set out the appropriate choices for the '0', '1' and '2+', possibilities, separating each choice with slashes.

  informationIf there is no appropriate text to display for one of the choices, you will still need the slash. It then just serves as a holding spot. See just above Paragraph G ('0' children requires no text), and see in Paragraph H near the !bene! group ((there is no ‘equal shares’ possibility for ‘0’ or ‘1’ beneficiary).

"But what if I need separate paragraphs based on all of possibilities reflected in the AskRepeat answer?" Sorry, this tool does not address that situation. We are working on a '<<*Options(choose)* . . .>> tool that will allow you to process a specific result for a specific number. Stay tuned. (And if you have the need for this, write to us. You can help beta test it.)

  informationNOTE: By design, Options blocks will always be processed before Repeat Blocks. This is so even when the Option block is nested within the Repeat block. (In any program, there must always be a processing order or precedence. Here, with the exception described immediately below, the order is 'Options and Optional' blocks first, and then Repeats.)  If you want the document's Repeat blocks to process first, simply present it as an 'AskRepeat' prompt at the top of the document. This is shown in the example.

   If you see your Repeat blocks automatically processing when it bears the same groupname as an Options block, that is because of the above rule. Here's what's happening. When the values for the Options block are presented, and you select one, the value for the !groupname! is immediately set. Then, when the Repeat block is encountered, its value is 'known' to Pathagoras and the Repeat block is repeated the 'appropriate' number of times, based one the Options position selected.

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