# using vars: more advanced samples

**URL:** <https://discourse.getdbt.com/t/using-vars-more-advanced-samples/5195>\
**Category:** Help\
**Tags:** jinja\
**Created:** [October 28, 2022, 12:18pm UTC](https://discourse.getdbt.com/t/using-vars-more-advanced-samples/5195 "2022-10-28T12:18:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![obar1](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/obar1/32/1221_2.png) [@obar1](https://discourse.getdbt.com/u/obar1)\
**Post date:** [October 28, 2022, 12:18pm UTC](https://discourse.getdbt.com/t/using-vars-more-advanced-samples/5195/1 "2022-10-28T12:18:45Z")

</div>

looking at [var | dbt Developer Hub (getdbt.com)](https://docs.getdbt.com/reference/dbt-jinja-functions/var)  
I cannot see samples of using it in a more advance way  
ex I am using as

```auto
dbt build --select +mod1 +mod2 --vars 'id_list: 2050f83f-659d-646d, 4c9ce1fe-2047-e757-3448'

```

I want to add another one like ‘another\_id\_list:a,b’ but as 1 params  
I think I can use a syntax like

```auto
dbt build --select +mod1 +mod2 --vars {'id_list: 2050f83f-659d-646d, 4c9ce1fe-2047-e757-3448', 'another_id_list:a,b'} 

```

is it possible to use dictionaries as well ?  
could you share some snippets/sample  
thanks

---

<div class="post-metadata">

**Author:** ![joellabes](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/joellabes/32/3980_2.png) [@joellabes](https://discourse.getdbt.com/u/joellabes)\
**Post date:** [November 1, 2022, 4:14am UTC](https://discourse.getdbt.com/t/using-vars-more-advanced-samples/5195/2 "2022-11-01T04:14:27Z")

</div>

Agreed, can you open an issue on the documentation site for this?

> **[Issues · dbt-labs/docs.getdbt.com](https://github.com/dbt-labs/docs.getdbt.com/issues)**
>
> The code behind docs.getdbt.com. Contribute to dbt-labs/docs.getdbt.com development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![joellabes](https://sea2.discourse-cdn.com/flex020/user_avatar/discourse.getdbt.com/joellabes/32/3980_2.png) [@joellabes](https://discourse.getdbt.com/u/joellabes)\
**Post date:** [November 1, 2022, 4:14am UTC](https://discourse.getdbt.com/t/using-vars-more-advanced-samples/5195/3 "2022-11-01T04:14:49Z")

</div>

Closed on November 1, 2022, 4:14am UTC


