Code block while loop

Hi All! I am trying to get a list of integers based on a counter. Here is a shot of my script and I can’t get it done.

Any help ??

@Ahmed_Ramy ,

check out :wink:

1 Like

Hi Draxl ! Infact this code is taken from the DesginScript manual.

1 Like

Hi @Ahmed_Ramy

just consider the code block as a function in any programming language. By calling return you get out of the function and break the loop. That’s why you return 1. You can use the code block i have attached to this message.