# DesignScript @List level

**URL:** <https://forum.dynamobim.com/t/designscript-list-level/29544>\
**Category:** DesignScript\
**Created:** [December 10, 2018, 10:58pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544 "2018-12-10T22:58:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucaspfmoreira](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lucaspfmoreira](https://forum.dynamobim.com/u/lucaspfmoreira)\
**Post date:** [December 10, 2018, 10:58pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/1 "2018-12-10T22:58:21Z")

</div>

Hi, I am sorry if that is a stupid question, I just couldn’t get it to work, tried changing the @L(x) but the same result regardless.

![dscapture](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/0/5/05cbad97fd2cce5362949c9ff047e439206b490e.png)

How do I select the level using designscript on that case?

The example givem on the blog works, but I am failing to understanding how to use it in other lists.  
Tryed List.LastItem(X@L2) and List@L2.LastItem(X)

Both cases give me the exact same result wich is the same as no level selected.

Thanks!

---

<div class="post-metadata">

**Author:** ![salvatoredragotta](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/salvatoredragotta/32/10078_2.png) [@salvatoredragotta](https://forum.dynamobim.com/u/salvatoredragotta)\
**Post date:** [December 10, 2018, 11:01pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/2 "2018-12-10T23:01:32Z")

</div>

@lucaspfmoreira

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/5/25ea497d0ec33fc7dddb72ff0d5e0cd6021cdbb4.png)

---

<div class="post-metadata">

**Author:** ![m.rijsmus](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@m.rijsmus](https://forum.dynamobim.com/u/m.rijsmus)\
**Post date:** [December 11, 2018, 7:52am UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/3 "2018-12-11T07:52:12Z")

</div>

Beside @salvatoredragotta 's solution, you could try Node to Code and study the results

---

<div class="post-metadata">

**Author:** ![lucaspfmoreira](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lucaspfmoreira](https://forum.dynamobim.com/u/lucaspfmoreira)\
**Post date:** [December 11, 2018, 2:24pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/5 "2018-12-11T14:24:36Z")

</div>

Worked perfectly! Thanks for the advice, I will put it in practice right-away!

---

<div class="post-metadata">

**Author:** ![lucaspfmoreira](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@lucaspfmoreira](https://forum.dynamobim.com/u/lucaspfmoreira)\
**Post date:** [December 11, 2018, 2:26pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/6 "2018-12-11T14:26:00Z")

</div>

Thanks for the advice! In some cases reducing the number of nodes can improve performance and readability of your code. This is just a small bit of a cluster bigger than 100 nodes.

---

<div class="post-metadata">

**Author:** ![jnoordzij](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jnoordzij/32/32419_2.png) [@jnoordzij](https://forum.dynamobim.com/u/jnoordzij)\
**Post date:** [March 30, 2023, 1:58pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/7 "2023-03-30T13:58:46Z")

</div>

In `List.LastItem(t1@L2<1>)` what does `<1>` mean?

---

<div class="post-metadata">

**Author:** ![SeanP](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/seanp/32/42560_2.png) [@SeanP](https://forum.dynamobim.com/u/SeanP)\
**Post date:** [March 30, 2023, 4:59pm UTC](https://forum.dynamobim.com/t/designscript-list-level/29544/8 "2023-03-30T16:59:28Z")

</div>

> [@How does lacing work in Design Script?](https://forum.dynamobim.com/t/how-does-lacing-work-in-design-script/72237/11):
>
> Yup! It also dictates what input is dominant and the hierarchy of all inputs slight_smile An excerpt from my [Introduction to DesignScript](https://github.com/Amoursol/dynamoDesignScript/blob/master/DesignScript_ARobustDiveIntoTheLanguageUnderlyingDynamo_BILTEUR_Ljubljana2018.pdf) course at BILT EUR 2018 may help explain.
