Does Dataweave 2.0 has for loop? For example I have the following code
%dw 2.0
var value = 0
var myArray=[1,2,3,4,5]
output application/json
---
{
value : myArray[3]
}
the variable value will have a value of 4 in this case. Is it possible to have some kind of for-each loop and go through the whole array?