Forum Discussion

hjengelson's avatar
hjengelson
Qrew Member
4 months ago
Solved

Jinja If statement equals field value

I'm trying to write an If statement in Pipelines for an email that if the Separation reason is retirement, do a line break and include the field value for if they are staying with the company as an i...
  • DonLarson's avatar
    4 months ago

    I am slowly, ever so slowly, learning some Jinja.  In the Advanced Expressions I have discovered that the double equal sign is necessary.

    {{a.numeric_field ==1or a.numeric_field ==3}}

    Perhaps that is what you need to ensure the text values are the same.  My understanding is that "=" sets something where as "==" checks if it is equal.