# Look up Value in a List Warning Message

**URL:** <https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426>\
**Category:** Lists-Logic\
**Created:** [February 21, 2019, 5:33am UTC](https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426 "2019-02-21T05:33:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ricardo\_Bagagem](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@Ricardo\_Bagagem](https://forum.dynamobim.com/u/Ricardo_Bagagem)\
**Post date:** [February 21, 2019, 5:33am UTC](https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426/1 "2019-02-21T05:33:19Z")

</div>

Got to see this great example for Look up values between 2 Lists from @Vikram_Subbaiah [“Lookup value in a list and place it in other list”](https://forum.dynamobim.com/t/lookup-value-in-a-list-and-place-it-in-other-list/8706/6).  
however it seems not working with Dynamo 2.0.2.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/ea10ed77279b19514822525afec4534374cf5fab.png) Does anyone out here knows a work around?  
Win 7  
Revit 2019  
Dynamo 2.0.2  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 21, 2019, 5:49am UTC](https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426/3 "2019-02-21T05:49:26Z")

</div>

Hello. The older versions of Dynamo used different syntax for lists ( 1.3 and earlier used `{ }` instead of `[]`) so the calls made in that code block will not work anymore. Here is an easy workaround for Dynamo 2.0+ using dictionaries:

 ![lookupvalueinlist](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/f/0fba77c3fef195446811c78c1921f106a6cf0bd2.png)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 21, 2019, 5:51am UTC](https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426/4 "2019-02-21T05:51:14Z")

</div>

One thing I was curious about is why does it not require an input for the variable `a`? It just knew what it was?

---

<div class="post-metadata">

**Author:** ![Ricardo\_Bagagem](https://avatars.discourse-cdn.com/v4/letter/r/e47774/32.png) [@Ricardo\_Bagagem](https://forum.dynamobim.com/u/Ricardo_Bagagem)\
**Post date:** [February 21, 2019, 5:54am UTC](https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426/6 "2019-02-21T05:54:29Z")

</div>

Hi @kennyb6 overall still very confusing for me…i’m doing baby-steps here.  
thanks for your time

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [February 21, 2019, 5:55am UTC](https://forum.dynamobim.com/t/look-up-value-in-a-list-warning-message/32426/7 "2019-02-21T05:55:46Z")

</div>

No problem. If you need help learning what dictionaries are in Dynamo, you should check out the [Dictionary section on the Dynamo primer](http://primer.dynamobim.org/en/09_Dictionaries/9_Dictionaries-In-Dynamo.html). If you haven’t read through the primer yet, it will help you a lot on getting started with Dynamo.
