If I have a `val` input `val samples` which can ta...
# nostupidquestions
a
If I have a
val
input
val samples
which can take a single value but might also be a list, how can I get it in the script section as a space separated list?
path
values seem to do this automatically e.g.
${inputs}
expands to
file1.txt
or
file1.txt file2.txt
automatically. I thought my val would behave the same, but the list seems to be output as a literal
[val1, val2]
rather than
val1 val2
m
Ensure it's always a list when you pass it in, so you can use
${samples.join(" ")}
in the script
party this 1