Trying to set up an iteration using the list type, and I’m having some problems. I am defining the list in a @ variable, but I think that’s where I’m not succeeding.
I’ve tried Concat’ing
=1
=2
and
=1 2
and
={1} {2}
and every other conbination I can think of, without success. Can anyone give me some direction, please? Thanks
What if I want to use a variable as the list basis? Can I do that?
I want to base how many iterations to do on an inbound field. For example, if Hospital Service is a therapy, I only want to iterate once. But if Hospital Service indicates a multiple therapy, I want to iterate x number of times. Thanks again
I believe you should be able to reference/manipulate the list iteration variable (%l1), the same as you can access the group,segment, field iteration variables by using the $ sign prefix (i.e. $%l1).
I have a “Maximum” number of iterations, so I set the iterate to that, then I’m checking the $%l1 to a counter temp variable. That’s getting done what I needed.
Now all I have to do is get that darn SEND working.
Just to add my two cents, the list basis is really just a place holder. You only get the index variable to work with but you can’t access the basis and use it. When I do lists I always make my basis start with zero (0 1) so that I don’t get confused.