So this issue, if there is one, appears to be with the Output. It always seems to be one further along. I put a Log after the Output and that displayed to the console a different value to the Output. Really strange behaviour … be interested to know if anyone else is experiencing this
Here is a screenshot of a noddy test. In it you will see that I’m making a call to postcodes.io webservice to get the nearest postcodes to a given postcode. This returns a list (body.result).
I’ve output the entire payload so I can see each entry.
I then push this through a For and output the entry. I also push that entry to the Log.
I added a delay so I could stop it immediately after the first item was displayed.
As you can hopefully see, the Log has shown two entries ([0] and [1]) whereas the Output is only showing [1] (or has shown both, the speed meaning it has now moved to [1].
My expectation would be that the first entry would be seen
That’s very helpful thank you. If you want to view the results one at a time you can put the delay block between the for loop and the output block.
What’s happening is the first result hits the output block (instantaneously) and then is sent to the delay block. The next item in the list then hits the output block (which is what you see) and waits until the delay finishes with the first element to be able to continue.