# Help With Jinja Statement For Appending To List

**URL:** <https://forum.ansible.com/t/help-with-jinja-statement-for-appending-to-list/34887>\
**Category:** Ansible Project\
**Created:** [March 30, 2021, 4:51pm UTC](https://forum.ansible.com/t/help-with-jinja-statement-for-appending-to-list/34887 "2021-03-30T16:51:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clint\_Denham](https://avatars.discourse-cdn.com/v4/letter/c/919ad9/32.png) [@Clint\_Denham](https://forum.ansible.com/u/Clint_Denham)\
**Post date:** [March 30, 2021, 4:51pm UTC](https://forum.ansible.com/t/help-with-jinja-statement-for-appending-to-list/34887/1 "2021-03-30T16:51:45Z")

</div>

I’m having a problem with Jinja Statements, and having it append to a list.

I have an existing list of VLANs that I’m trying to sort into individual lists but the statement I’m using isn’t appending, but rather creating separate lists. Can you point out what I’m doing wrong please so that I end up with the ‘Desired Result’ below?

List of VLANs
