Hi,
I have a collection with the following structure.
ClearCollect(
colExample,
{
ID: 1,
Section: true
},
{
ID: 2,
Section: false
}
...
);
Now I would like to generate a new collection "colCollection" with further content based on the information of "colExample". To go through each line of collection "colExample" I want to use ForAll().
ClearCollect(
colCollection,
{
ForAll(colExample,"Example " & colExample.ID & ", Section: " &
If(colExample.Section, "yes", "no")
)
}
)
The final result should be a collection (colCollection in the example above) which contains strings, e.g.
"Example 1, Section: yes"
"Example 2, Section: no"
My problem is the ForAll() code above does not work. How do I get the values of colExamples, e.g. ID, inside the ForAll()?
Thanks for your help.
Best regads,
Michael