{{=myvariable}} outputs myvariable to the page. You just need to refer
to the variable. Here is an example:

{{if default_fields['job_title']:}}
<div>the job title is </div>{{=default_fields['job_title']}}
{{pass}}

The first one checks the value. The second outputs to the page.

On Nov 27, 9:22 am, Constantine Vasil <[email protected]> wrote:
> I am passing a dictionary to template. Each dictionary value is
> True or False and I want to check it value in the template.
>
> {{=default_fields['job_title']}} renders to "True"
>
> but this construct is returning "SyntaxError: invalid syntax":
>
> {{ if {{=default_fields['job_title']}}: }}
>
> {{ pass }}
>
> How to check a value in a dictionary entry in template?

Reply via email to