Is there a way to process a list as seperate instances instead of all at once?

I’ve put together a script that pulls data from piping model elements, and the goal is to pass it down the chain collecting as it goes. However because the list is processed all at once, pipe branches of different lengths cause problems. In theory I’d like to run just the furthest points then all the next furthest and so on.

I’ve also mostly blundered my way through dynamo. I can’t share the scripts and their very bloated so images probably won’t help much.

@dlongmore52AV4 sounds like a recursive function. but take a look at package mepover, there might be something helpful.