Allows you to iterate over a collection of elements and execute the piece of code for each element.
Expression: The path of the collection you want to iterate on. See Expression
for more details.
for each ‘legs’ collection checks if ‘vector’ item is an integer value.
If a collection is nested in another one, you need to refer to them as _1, _2, and so on.
for each payload.content.flights collection checks if ‘price.amount’ is an integer and then, for each legs array (that is a nested collection in the flights collection) checks if vector item is an integer value.