MikeTamoush
2 years agoQrew Commander
Performing Multiplication in Jinja for Pipelines
I am trying to set a field to
[MyField] * .68
I tried this:
{{a.MyField .68}} but that syntax wont even save. I also tried {{My.Field}}*.68. This saves, but produces an error when the pipeline runs. I know I could make a field in my Trigger table that does this calculation, but I would rather learn how to multiply in Jinja!
------------------------------
Mike Tamoush
------------------------------
Round to 2 decimals:
{{ "%.02f" | format(MyField * 0.68) }}
------------------------------
Doug Henning
------------------------------