Hi,
I have the following code where i want to display the message "Hello World" only once in a loop . what condition i should write?
a!localVariables(
a!forEach( items: {1,2,3,4}, expression: { concat("Hello "," World")
}
))
Discussion posts and replies are publicly visible
Hi there,
I'm not sure if I got your requirement, but if you just want the unique values after a loop, you can try something similar to that:
a!localVariables( local!a: a!forEach( items: { 1, 2, 3, 4 }, expression: { concat("Hello ", " World") } ), union(local!a, local!a) )
Regards,
Acacio B
Thanks it works