For record 391, these numbers are in the j_classification field (formula field): "120 ; 166 ; 180 ; 328 ; 369 ; 385 ; 386 ; 391"
------------------------------------------------------------------------------
So this is the code I tried but nothing happens:
{% set values = a.j_classification.split(';') %}
{% for value in values %}
{% if value == a.id %}
{{200}}
{% endif %}
{% endfor %}
This is the message when I run the pipeine: Skipped because set values are the same as in source object. The output field j_output is empty.
------------------------------------------------------------------------------
If I just print the array:
{% set values = a.j_classification.split(';') %}
{{values}}
then this is the output:
------------------------------------------------------------------------------
If I print array index 7 - it gives me 391. So I know the array works
{% set values = a.j_classification.split(';') %}
{{values[7]}}
------------------------------------------------------------------------------
I also tried to set the j_classification field to 391 only but same message: Skipped because set values are the same as in source object.
{% set values = a.j_classification %}
{% if values == a.id %}
{{400}}
{% endif %}
------------------------------------------------------------------------------
Next, I tried setting the values field to 391 and it worked:
{% set values = 391 %}
{% if values == a.id %}
{{400}}
{% endif %}
Just not sure what is wrong...
------------------------------
Jay
------------------------------