I have two local variables storing list of numbers:
How can I get coordinates from this like
1,1
2,1
3,1
4,1
based on column and row value together?
Discussion posts and replies are publicly visible
Check out merge() function: https://docs.appian.com/suite/help/23.2/fnc_looping_merge.html
Try to look for suitable functions in documentation before posting here.
https://docs.appian.com/suite/help/23.2/Appian_Functions.html
To be fair, merge() isn't that intuitive, even if you knew that was the name you should be searching for.
@azlins0001 - Sanchit is correct, you can use the merge() function which takes two lists - like those in each of columnPosiitons and rowPositions, and merges them by creating a "list of lists" where the items listed at each index are brought together into their own list:
a!localVariables( local!columnPositions: { 1, 2, 3, 4 };local!rowPositions: { 1, 1, 1, 1 }, fn!merge( local!columnPositions, local!rowPositions ) )
.;..which results in;
yeah, but the documentation link I shared, contains plenty of examples which can be referred for best understanding and also IMO a good practice to follow when you are learning.