Pathagoras Help System

Repeat 'Series Connector'

Repeat 'Series Connector'

Previous topic Next topic  

Repeat 'Series Connector'

Previous topic Next topic  

   In the previous examples, the text was repeated 'intact ' with no embellishment except the incremented variables.

   However, you may wish your 'repeated' text to appear in the final version of your document in a 'series' style display, with commas and a conjunction in the appropriate location , e.g., "[child@1], [child@2], [child@3]  and [child@4].

   To accomplish this, you will want to add a 'series connector' to the <<*Repeat*>> prompt. It is a very easy step.

   There are only two possible series connectors: "(and)" and "("or"). Just type the desired connect  "(and)" or "(or)" immediately after the '<<*Repeat" keyword.

Examples:

No series connector:  
  <<*Repeat*[ChildName]>>

      Result, if "3" repeats chosen:

[ChildName@1] [ChildName@2]  [ChildName@3]

With a series connector:
  <<*Repeat(and)*[ChildName]>>

      Result, if "3" repeats chosen:

[ChildName@1],  [ChildName@2] and [ChildName@3]

With a series connector and a group:
  <<*Repeat(and)*!NumChildren!*[ChildName], [ChildDOB],>>

and the same variable(s) elsewhere in document:

  <<*Repeat(and)*!NumChildren!*[ChildName]>>

  Result, if "3" repeats chosen:

   [ChildName@1], [ChildDOB@1], [ChildName@2], [ChildDOB@2], and [ChildName@3], [ChildDOB@3],

and elsewhere in document:

   [ChildName@1], [ChildName@2] and [ChildName@3]

informationNote: With series connectors, not only is the conjunction 'and' or 'or' added, but the appropriate commas separating the initial elements in the listing are added.)