For and while loop

what am i missing here?
i was learning from a video tutorial and i came up with this,


when i am trying the same, i’m getting an empty list,

thanks in advance;
ps: kindly suggest where can i learn more of scripting in code blocks.
thanks again.

DesignScriptDocumentation.pdf (705.5 KB)
DesignScriptGuide.pdf (3.7 MB)

1 Like

Remember to return something from your Imperative block. You have to distinguish the res inside your imperative block and the res outside it. It is not considered as the same variable.

2018-08-27%2013_43_34-Dynamo

1 Like
1 Like

@m.rijsmus Thank but i have these two, i’m looking for something more in detail.
@mellouze thanks i got it now. I’m still wondering how they got values in tutorial. maybe old dynamo.

I guess so too.

1 Like

https://wetransfer.com/downloads/80aa636ed993373dd364d3b9c65c309020180827115001/5234b9ef78ee637b41d82db5d764bf6e20180827115001/360405

1 Like

@m.rijsmus thanks a lot.