List of Specific Numbers

Hello scripters,
I am stuck at a somewhat trivial point.
I want to create a list of numbers in a code block. Could someone please explain why the first method doesn’t work?

Additionally, if I want to create a list of Doubles (0.15, 0.46,0.69,0.93) it doesn’t work all the more.
I am flumoxed!

Thanks in advance!
Praddy

In the first codeblock skip the " (" and " )" like the third code block, the curled brackets are only needed when you use a list of number in a function i think. Anyway i’ll give you something to read.

DesignScriptGuideV2.1.pdf (343.2 KB) DesignScriptDocumentation.pdf (705.5 KB) designscript-final.pdf (1.5 MB)

I think I found the solution, and it blew my mind!
[(1,~space~2,~space~4,~space~6)]; worked.
All I needed to do was add a space!!

So it’s [(1, 2, 4, 6)];

I haven’t had the chance to go through the PDFs yet. They are a great resource. Thank you.

1 Like