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.


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

1 Like

@m.rijsmus thanks a lot.