The previous sample has a useful application. This one does not, but perhaps by its very non-standard nature, it will make more sense to some:

--Copy Below--


The below gets or sets values via the AskTable.

Ask Block Text

Before processing

After processing

<<*AskRepeat*!NumCdn!*How many children?>>

 Repeat block created in normal fashion, with ‘Repeat’ designator and groupname followed by the question. Let's say "2".

The AskRepeat line will disappear, but "2" has been assigned to !NumCdn!

<<*AskRepeat*!NumCats!*How many cats?>>

 Repeat block created in normal fashion, with ‘Repeat’ designator and groupname followed by the question. Let's say "4"

The AskRepeat line will disappear, but "4" has been assigned to !NumCats!

<<*Set*!NumDogs!=3(#)*>>

 The values in parentheses relate important information.  If a ‘#’, it says the value is a raw number. NumDogs is set to the raw value of 3 (dogs);

The Set line will disappear, but "3" is assigned to !NumDogs!

<<*If*!NumCdn!+!NumDogs!>”5”,!CrazyHouse!=”1(2)”,!CrazyHouse!=”2(2)”>>

 If a number, it conveys that the Group is an ‘Options’ (vs. Optional) block and the total number of choices.

 Here,  !CrazyHouse! is an Options (not Optional) block and there are 2 choices provided in the document.)

 If the value set were “True” or “False” instead of a number, the block would be “Optional”.

Pathagoras performs the math.
Since !NumCdn! plus !NumDogs! is more than 5, !CrazyHouse! is set to "1" (or the first) of 2 choices.

<<*Set*!NumCritters!=!NumDogs!+!NumCats!>>

 The above sets another value based on the input and/or set value.

Pathagoras performs the math and sets a value. Since !NumDogs! plus
!NumCats! equals 6, so !NumCritters! is set to "6".

 

  The below is body text. The results of the AskTable are carried into the body text.

The names of my child(ren) is/are <<*Repeat(and)*!NumCdn!*[Child]>>

 This illustrates Pathagoras' 'repeat action' using the raw value of the AskRepeat for NumCdn.

The names of my child(ren) is/are [Child@1],[Child@1] and [Child@1]

The names of my dog(s) is/are <<*Repeat*!NumDogs!*[Dog]>>.

 This illustrates the 'repeat action' using the raw value of the Set function for NumDogs.)

The names of my dog(s) is/are [Dog@1], [Dog@2], [Dog@3].

I have <<*Options*!NumCdn!*no children/one child/two or more children>>.

 This illustrate the 'Options' action which transforms the Repeat value of NumChd: '0'=first option;'1'=second option;'2+'= third option.)

I have two or more children.

<<*Options*!CrazyHouse!*This is a crazy house with <<!numcdn!>> {!NumCdn!children/ORchild/ORchildren} and <<!numdogs!>> dogs inside./This is a sane house with {!NumCdn!no children/ORonly one child/ORonly <<!numcdn!>> children} and <<!numdogs!>> dogs inside.>>

 This illustrates (1) how Pathagoras can use a set variable (CrazyHouse); (2) insertion of raw Repeat and Set values via GroupNames; and (3) 'Simple Options' action which transforms the Repeat value of NumCdn: '0'=first option; '1'=second option; '2+'= third option.

This is a crazy house with two children and three dogs inside.

This house has <<!NUMCRITTERS!>> critters inside!

This illustrates returning just the ‘raw’ value. The number is spelled out and the case and emphasis is preserved.

The house has SIX critters inside.

 

 


--Copy above--

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