# Assign value from one list to sublist

**URL:** https://forum.dynamobim.com/t/assign-value-from-one-list-to-sublist/70504
**Category:** Lists-Logic
**Created:** [November 17, 2021, 3:53pm UTC](https://forum.dynamobim.com/t/assign-value-from-one-list-to-sublist/70504 "2021-11-17T15:53:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![prapon77](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prapon77](https://forum.dynamobim.com/u/prapon77)
#### Post date: [November 17, 2021, 3:53pm UTC](https://forum.dynamobim.com/t/assign-value-from-one-list-to-sublist/70504/1 "2021-11-17T15:53:57Z")

</div>

Hi all,

I have a list of point locations in one list, with Z = 0 that I want to replace these Z values from another list. From this example, all Z values in sub-list 0 will be 18, in sub-list 1 and 2 will be 23. The number of items from list on the left will always match the number of sub-list on the right.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/9/e961d8794bfa9616615359f52c6f2f67b1093faa.png)

Any help is highly appreciated!

---

<div class="post-metadata">

### Author: ![EdsonMatt](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/edsonmatt/32/124725_2.png) [@EdsonMatt](https://forum.dynamobim.com/u/EdsonMatt)
#### Post date: [November 17, 2021, 4:57pm UTC](https://forum.dynamobim.com/t/assign-value-from-one-list-to-sublist/70504/2 "2021-11-17T16:57:31Z")

</div>

Hi @prapon77 , welcome to the Dynamo Community!

Are you trying to modify z coordinates in this way?

 ![1](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/5/95625b51020c79ac476bb874936a87192fd956b3.jpeg)

---

<div class="post-metadata">

### Author: ![prapon77](https://avatars.discourse-cdn.com/v4/letter/p/8dc957/32.png) [@prapon77](https://forum.dynamobim.com/u/prapon77)
#### Post date: [November 18, 2021, 7:29am UTC](https://forum.dynamobim.com/t/assign-value-from-one-list-to-sublist/70504/3 "2021-11-18T07:29:09Z")

</div>

Yes!!! That works perfectly. Thank you very much!
