Replace items with other items by name its value

Hello Dynamo community! :slight_smile:

Is there a way to replace these 2 items, by the name of the values? (reference “Line”)
Or is there a node around that works similar to “replace by nulls”. (I mean i would change by reference to its name)
I hope i could express myself clearly enough.


Are both lines the same and are both points the same, or does each line correspond to the specific point?

Those points are the middle points of the lines and i would like to make another list to replace those lines to those points in the list. If you have a better idea, all answers welcome. :slight_smile:

Use an If Statement to replace the items that aren’t points with the midpoint of the line.


Thx :slight_smile: