Retrieving Information Other Than Answers from a REPEAT Instruction

You can also use a Computation variable to retrieve other information than a list of answers from a REPEAT instructionAn instruction that repeatedly asks the same variable(s) so that users can provide two or more answers for a given question. REPEAT instructions are used to create lists of answers in the document..

For example, perhaps you want to gather a list of children, and then find and return the number of children who are minors. You can use the REPEAT instruction in a computation to get the result you want. The following computation script shows an example of how to do this:

0

REPEAT Child Information

IF AGE( Birthdate ) < 18

RESULT + 1

END IF

END REPEAT