!procedure ($list)

0 votes
asked Nov 24, 2021 in Wanted features by emalware (280 points)
can I send a list of items to a !procedure

1 Answer

0 votes
answered Nov 24, 2021 by The-Lu (64,340 points)

Hello E.,

Yes, you can, using JSON variable, as:

!$list={
    "elements": ["A", "B", "C", "D", "..."]
}
$procedure($list.elements)

See another example here:

And the doc. about JSON Processing here:

If that can help,
Regards,
Th.

commented Nov 25, 2021 by emalware (280 points)
yeap, I did exactly this. as a workaround thanks for sharing. I also tried a direct JSON array but, didnt work

I mean something like this, which is also a valid JSON format
https://codebeautify.org/jsonviewer/cb309f1c
...