String manipulation using iteration

0
i need to create a single string  from a list of values . for example, i have a list with 3 values “one, two, three” , now i need iterate on them, so i can get the output string as “one-two-three”. need idea how to get this..
asked
1 answers
0

You can first create a String variable, then have a loop to iterate over your list. Inside the loop, just append the value of the iteration and a ‘-’ to the String variable. Outside the loop, remove the last ‘-’ character using a substring operation in a change variable action.

Hope this helps.

answered