Add item to list

Let’s say there is a variable that is a list: [‘a’,‘b’,‘c’]
And I want to add “d” to it so that it becomes: [‘a’,‘b’,‘c’,‘d’]
How do I?

At the most basic:

{{ list_var + ['d'] }}

If you detail the use case, we can give you a more specific answer.

1 Like