Can you suggest a more convenient way to code this?

Im trying to look for a way where i dont have to separate the indices and move them at the z axis using series. it’s easy to move them in a series at z direction without the landing at the middle. but it becomes tricky when the landing is included. is there any way i can generate this using series and panel codes/numbers only at once? or if you have any personal approach in mind? thanks and regards

stair with landing_gh.gh (7.1 KB)
stair with landing_rhino.3dm (31.6 KB)

this is the first thing that came to my mind: having a landing just means to repeat the previous Z_movement vector :slight_smile:

stair with landing_gh_inno.gh (13.6 KB)

But not necessarily…

This question is difficult for me to answer because I can see so many different parametric ways!!