ym1198
ym119814mo ago

How to take input 2-d array in scripts

Please help @rubenf
5 Replies
Sindre
Sindre14mo ago
can you maybe explain what you have tried before and what error you get? Becuase the title is not that helpfull. I could say "pass in the 2-d array to the script" as the answer but that would also not be a usefull answer to the question, even if it's a correct one.
ym1198
ym119814mo ago
So now if the input type is array, i can add more items by clicking on Add item cta. but i want to take input as 2-d arrays like i want to take values for 11 12 13 14 21 22 23 31 41 42 43 44 like this workaround i found was to use array type and then take comma separated string for each row and later convert that string to array
rubenf
rubenf14mo ago
You can also make list of objects and each objects is actually a list
Sindre
Sindre14mo ago
As Ruben said. Or just do any/object and type in a 2d array in one input. Easiest if you are copy pasting
ym1198
ym119814mo ago
Will try both and see thanks