Hi all, I’m starting out with Grasshopper, and would appreciate some learning assistance. I want a parametrised array of beams. The beams are all the same length, except the beams on the left and right edges of the array should be longer by a defined overhang. I solved this problem by checking when the start point X component was the same as the origin X component, and then subtracting the overhang, while on the right side checking for the end point being the same X dimension as the calculated number of beams times the span lengths. To me, this is a bit ugly, I would prefer to have used the array indices to check for the beam location and conditionally add the overhangs that way. However, I cannot find how to do this using the tree data structure. I’ve been through all the relevant video tutorials that I can find. Any suggestions?

Array of beams.gh (23.7 KB)