# Table of Variables

**URL:** <https://discourse.nodered.org/t/table-of-variables/42323>\
**Category:** General\
**Created:** [9 March 2021 11:07 UTC](https://discourse.nodered.org/t/table-of-variables/42323 "2021-03-09T11:07:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [9 March 2021 11:18 UTC](https://discourse.nodered.org/t/table-of-variables/42323/2 "2021-03-09T11:18:27Z")

</div>

Not sure if i understand fully, but it sounds like you need to create a llok up table.

This can be done by creating a JSON with keys as device names and values as the information corresponding to the device. This can be stored in context storage as a global or in a database/textfile also.  
Context would be easier and fairly simple.  
[https://nodered.org/docs/user-guide/context](https://nodered.org/docs/user-guide/context)  
Maybe this will help you with lookup table  
[https://www.reddit.com/r/nodered/comments/9q7v3n/how\_to\_create\_a\_lookup\_table/](https://www.reddit.com/r/nodered/comments/9q7v3n/how_to_create_a_lookup_table/)

> [@How to access a lookup table from \`\`\`Function\`\`\` Node](https://discourse.nodered.org/t/how-to-access-a-lookup-table-from-function-node/4063):
>
> I am wondering where to begin if I want to access a lookup table on my computer (example .csv) that would have two columns and I could match up a know variable passing through a function node on the payload and assign a new variable to the payload after a match is made. For example my table has a column "ip address" and a column "location". I would fill out the table with the ip address and associated location, and as my function node runs, it will be able to output the location based on the i…

---

_[View the full topic](https://discourse.nodered.org/t/table-of-variables/42323)._
