Hi,
I always face this issue and wanted to get your perspective on the right way to do this,
I want to have one string that concatenates several rows of a repeat region and put a new line between each row. At the end of the repeat, I want to be able to return the resulting string.
This is how I approached it:
However, the variable research seems empty after each iteration and output is returning a space only.
Here are the formulas used at each step:
Before the repeat:
research = ' '
Inside the repeat:
research = research+'Page Title: \'\'\''+title+'\'\'\', Snippet: \'\'\''+snippet+'\'\'\', Link: \'\'\''+link+'\'\'\' \n\n'
Outside the repeat:
output = research
It seems like the research variable inside the repeat is reinitialised at each iteration
and that the research variable after the repeat is taking the value of the research variable that was before the repeat.
Any ideas of how to solve this?
Many thanks