Pathagoras Help System

'Return' the Repeat value

'Return' the Repeat value

Previous topic Next topic  

'Return' the Repeat value

Previous topic Next topic  

  Returning the 'repeat' value. The above examples capture the number of requested repeats, but do not 'return' that value (i.e, '1' , '2' ,'three', etc.) to the editing screen. If you want to 'return' a value to your editing screen at the same time you make your selection, add the word 'Return' in the administrative section of the 'Return' prompt along with the 'style' of the returned number (numeral or spelled out.)

   Examples (combining !groups! and 'returns'):

 <<*Repeat*!shareholders!Return*1>>

       <<*Repeat*!shareholders!Return*one>>

The "1" (or any other 1 or 2 digit number) after the second "*" tells Pathagoras to return the Arabic numeral;
The "one" (or any other number) tells Pathagoras to return a "spelled out" number.
Whatever number you provide becomes the 'default' value when the 'how many' question is asked.

 More examples:

 

  <<*Repeat*!shareholders!Return*One>> individuals own stock in the corporation:

  <<*Repeat*!shareholders!*Name: [ShareholderName] Shares Owned: [SharesOwned]

  >>

  The shareholders waive notification of the upcoming annual meeting as evidenced by their signatures below:

  <<*Repeat*!shareholders!*_________________

                           [ShareholderName]

  >>

Here the result if the answer to "How many shareholders? is 3:

  Three individuals own stock in the corporation:

  Name: [ShareholderName@1] SharesOwned: [SharesOwned@1]

  [ShareholderName@2] [SharesOwned@2]

  The shareholders waive notification of the upcoming annual meeting as evidenced by their signatures below:

                            _________________

                            [ShareholderName@1]

                            _________________

                            [ShareholderName@2]

 

Another Example:

Children (the repeat's 'groupname' is "!cdn!")

Minor Children of the Parties

<<*Options*No Children/One Child/2+ Children*

1. Husband and Wife have no minor children from the marriage./
2. There is one minor child of the parties: [Child1 Name], born [Child1 Birth Date]./
3. There are <<*Repeat*!cdn!Return*two>> minor children of the parties: <<*Repeat*!cdn![ChildName], born [ChildBirthDate]>>

>>

Here is the result of the answer to "How many children? is 4:

Minor Children of the Parties

1. There are four minor children of the parties: [ChildName_1], born [ChildBirth Date_1] [ChildName_2], born [ChildBirth Date_2] [ChildName_3], born [ChildBirth Date_3] [ChildName_4], born [ChildBirth Date_4]