How to use ".length" with "continue_based_on_condition" for checking array size in a previous step?

This topic was automatically generated from Slack. You can find the original thread here.

probalby RTFM - but using continue_based_on_condition and I want to continue if the array from a previous item has 1+ more items. I intally passed the array {{ steps.something.returnArray}} and got an error because it wasn’t a number. That’s definitely sensible. How do I add “.length” to the expression?

You can run any JavaScript expression within the {{ }}, so you can do {{steps.something.returnArray.length}} if you want to pass the length directly to a step as a number

trying now

boom

muchas gracias