Howdy @Henrik Sommerland,
Thanks for sharing your question with us! I would love to provide clarity on this.
While I can definitely understand why you’d want to find a workaround for this, unfortunately while you can use one variable within your if statement, you cannot add an additional variable within the snippet. Django doesn’t support his function and therefore will only successfully fire with one variable at a time.
Do you mind sharing what your goal is or what inconvenience you’re trying to workaround? This might help me better discover if there’s another way to accomplish what you want. For example, if you are creating if statements to check in an individual item’s data, you can instead create an items.collection tag, that would search through a grouping of items in one action, instead of creating multiple duplicate chunks of code snippets as you mentioned before.
Thanks for participating in the Community!
-Taylor