Just for knowledge:
can we print below pattern in appian:
1
23
456
78910
1112131415
Discussion posts and replies are publicly visible
yes
Please suggest the approaches
Is your ask about the algorithm? I don't know. But once you know it, you can easily print the numbers.
I have tried multiple ways using enumerate ,foreach but couldnt get the exact pattern for it
OK. What is the algorithm?
One way...
a!localVariables( local!rows: 5, a!forEach( items: enumerate(local!rows) + 1, expression: a!localVariables( local!index: sum(enumerate(fv!index)), joinarray( a!forEach( items: enumerate(fv!item) + local!index, expression: fv!item + 1 ), "" ) ) ) )
thanks