Forum Discussion

JennasonQuick_B's avatar
JennasonQuick_B
Qrew Trainee
3 months ago

Branching a pipeline based on the number of records in a fetched JSON

Currently my pipeline: Does a JSON Fetch to retrieve a JSON response Does an Iterate over JSON records After the iterate I'd like to add a condition step that checks whether the # of JSON record...
  • JohnErdmann's avatar
    3 months ago

    Try this:

    {{ d | count == 2 }}

    The expected return value of the above would be TRUE. The expected return value of {{ d | count}}==2 would be string literal 2==2 because it is not encapsulated in the curly braces.