I have a jinja2 template being processed that includes:
<td>{{ '' if group[2] }} {{ group[2] }}</td>
I'm trying to add the to all items that contain group[2]
. I want to include entries where a value exists including None
. Currently the following is produced:
How can I modify {{ '' if group[2] }}
so it runs for variables that have values including None
.