Forum Discussion
DwightMunson1
Qrew Assistant Captain
I would think it would be:
{% if a.scan_value != "" %}{{a.scan_value}}{% else%}{{a.text_value}}{% endif %}
!= is the comparison operator for inequality.
You could probably also do:
{% if a.scan_value is none %}{{a.text_value}}{% else%}{{a.scan_value}}{% endif %}
------------------------------
Dwight Munson
------------------------------
{% if a.scan_value != "" %}{{a.scan_value}}{% else%}{{a.text_value}}{% endif %}
!= is the comparison operator for inequality.
You could probably also do:
{% if a.scan_value is none %}{{a.text_value}}{% else%}{{a.scan_value}}{% endif %}
------------------------------
Dwight Munson
------------------------------
PaulPeterson1
3 years agoQrew Assistant Captain
Thank you, I was close the first time. I didn't use the same formatting when I tried it in the pipeline. I had the {{}} around the scan value and the pipeline GUI gave me an error. It went away when I removed the brackets.
------------------------------
Paul Peterson
------------------------------
------------------------------
Paul Peterson
------------------------------