Jay
2 years agoQrew Member
Pipeline Looping Through an Array
Hi guys, I am new to Pipeline, and I need some help doing the following task:
Loop through the first half of a text field containing many numbers separated by ";", and comparing each number to the record ID. It accepted the code but when I run it, this code popped up "Skipped because set values are the same as in source object."
{% set array = a.j_classification.split(';') %}
{% set first_half = array | length %}
{% set first_half = first_half//2 %}
{% for i in range(first_half) %}
{% if array == a.id %}
{{1}}
{% endif %}
{% endfor %}
------------------------------
Jay
------------------------------