Replace items with other items by name its value


#1

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.

Thanks!


#2

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


#3

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:


#4

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


#5

Thx :slight_smile: