Forum Discussion

MikeTamoush's avatar
MikeTamoush
Qrew Commander
2 years ago

Pipelines Jinja Help

Does anyone know the correct syntax to check if a field equals a certain text string?

This checks if the field is blank:

{% if a.fieldA is none %}

If I want to see if FieldA ="test", does anyone know the syntax?

Ive tried the following with no success

{% if a.fieldA==test %}
{% if a.fieldA is 'test' %}

------------------------------
Mike Tamoush
------------------------------

2 Replies

  • Assuming fieldA is a text field, this should be correct: {% if a.fieldA== 'test' %}
    Your example excluded the quotes.


    ------------------------------
    Ahuva Brown
    ------------------------------
    • MikeTamoush's avatar
      MikeTamoush
      Qrew Commander
      Aww man I was so close LOL. I just needed to combine both of my attempts. I'll try this out thanks!

      ------------------------------
      Mike Tamoush
      ------------------------------