Here's a question I probably won’t even understand the answer to, dealing with REPEATed variables, but here goes:
I have several sets of REPEATing variables (at least I think that's what they are). As to one set, I want HD to compare and contrast answers to them, and change the output text depending on the variables’ content. Specifics will make it clearer:
In any given adoption, there may be one, two, or more kids. And in any given adoption, there may be one, two or more types of adoption. The Petition must name the kids, and also describe what type of adoption applies to each kid. For example, there might be three kids in one case, two of whom are international adoptees, and the other being a stepchild adoptee. In another case, there might be three kids again, but they may all have been placed by Child Protective Services.
I have written a computation that uses REPEAT to describe the type of adoption for each kid. That’s fine if the >type< of adoption varies for each child.
But it looks stupid when the result is needlessly repetitious, like this:
". . . . Petition for DFCS adoption of Kid 1, DFCS adoption of Kid 2, and DFCS adoption of Kid 3."
Can someone point me in the right direction for writing a computation that can "tell" when two (or more) of the kids’ >type(s)< of adoption are identical, so that instead of the above, it generates something that groups like adoption types together? For example, the above case would instead say:
". . . . Petition for DFCS adoption of Kid 1, Kid 2, and Kid 3."
I’m guessing the answer has to do with manipulating "[x]" iterations of REPEATed variables, but I’m just blank on how think about it. (I’ve never liked variable arrays!)
Seth Rowland:.... repeat on TYPE of ADOPTION.- In this case, you specify the Type of Adoption and then enter the names of the children to which this adoption applies....