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 records is exactly 2 and then branch accordingly
My iterate JSON step is Step 'd'. I'm trying to figure out the right syntax to use in my condition step.
In the advanced expression of my condition step I've tried {{ d | count}}=2 {{ d | count}}==2 {{ d | length}}=2 {{ d | length}}==2 and all always resolve to 'True' even when the returned json only has 1 record
Any help is appreciated.