Copy all elements of a current level to all the levels

Hi everyone, I have been trying to create a script to automate the copying of all elements of one level to all the other levels, and I am stuck at the moment. At the moment my model has only walls but in the future I would like to copy all elements of a level. I currenly have 7 levels, with the names: -1, 0, 1, 2, 23, 24, 25

I have been researching the forum, for a solution for this but I haven’t found anything until now. If there is already a solution for this I would be glad to hear it.

The current script only copies two walls out of the walls that exist. I upload the picture of the script that I have been running and I would be grateful for your suggestions.

p.s. problem has been solved

Best regards

Hello, here is a way to proceed, but I do not think it is very academic
(Stay in manual mode)

Cordially
christian.stan

After seeing into it I have got a solution, here the screenshot of the script: