Can you help me how to modify the code

Hello,

Can you tell how to modify this code.
Now it generates one cube made from polygons.
I want that it would generate many figures(like 3d world made from many cubes). Is it possible to use for/while here.
Sorry about my English
THANK YOU!! :wink:

Here is my code: Attached

[quote]Is it possible to use for/while here.
[/quote]
Yes. Just try it out and come back, if you have a concrete problem. Have fun!