Browse Ask a Question
 
Tools
Rss Categories

How can I get certain variables to repeat and increment?

Views: 2540 Created: 04/09/2012 05:54 am Last Updated: 08/30/2013 12:20 pm 0 Rating/ Voters

    Sometimes there is one child, or one shareholder. Sometimes there are none and sometimes there are several. You can create the needed variables of any kind during document assembly time with the <<*Repeat*>> call. The call will not just repeat the variable, but it will increment it to reflect the second, third, etc, person, place or thing

Example 1
 

<<*Repeat*[Child]>>

When the <<*Repeat*>> block is encountered, Pathagoras will ask 'How many?'

If you answer "3", Pathagoras will return "[Child@1] [Child@2] [Child@3]" to the screen.

Example 2
 

<<*Repeat(and)*[Child]>>

When the <<*Repeat(and)*>> block is encountered, Pathagoras will ask 'How many?'

If you answer "3", Pathagoras will return "[Child@1], [Child@2] and [Child@3]" to the screen.

(The structure above follows a standard pattern in Pathagoras: a call to action surrounded by a pair of asterisks, with the entire command block surrounded by double angle brackets.)

To read more on Repeats, more examples, more options, follow this link to the Manual.