NickCharalambou
6 months agoQrew Cadet
Pipelines and appending / joining
I have a jinja expression that simply compares old to new, and writes to the text field it sits in on the pipeline:
{% set result = "" %}
{% if a.requested_offer_types != a.$prev.requested_offer_types %}
{% set result = result + "Requested Offer Types from " + a.$prev.requested_offer_types + " to " + a.requested_offer_types + "\n" %}
{% endif %}
{{ result }}
The if works however it overwrites the text field. I want it to append to the text field.
I dont want to use the log function, as I dont need the user and time details