Forum Discussion
QuickBaseJunkie
Qrew Legend
4 years agoChallenge Accepted!
This seems to do the trick.
To learn more about using Jinja in Pipelines, I have created a course called Intro to Jinja for Pipelines.
------------------------------
Quick Base Junkie
------------------------------
This seems to do the trick.
- "set" the multi-select field into a Jinja list using the 'split' variable on the semicolon
- Iterate on the list using the "for" statement to create the advanced query expression
- Use "if" and "loop.last" to avoid adding an 'OR' at the end of the query
To learn more about using Jinja in Pipelines, I have created a course called Intro to Jinja for Pipelines.
{% set list = a.food.split(';') %}
{% for item in list %}
{% if loop.last %}{23.HAS.'{{item}}'}
{% else %}
{23.HAS.'{{item}}'}OR{% endif %}
{% endfor %}
------------------------------
Quick Base Junkie
------------------------------
EdwardHefter
4 years agoQrew Cadet
That worked perfectly - (Thank You!)^3
------------------------------
Edward Hefter
www.Sutubra.com
------------------------------
------------------------------
Edward Hefter
www.Sutubra.com
------------------------------
- QuickBaseJunkie4 years ago
Qrew Legend
Awesome!
Thanks for letting me know 🥳
------------------------------
Quick Base Junkie
------------------------------