arnauorriols / node-red-contrib-python-function

Write Python functions in Node-RED!
MIT License
41 stars 23 forks source link

Loop #16

Closed mikketeus closed 2 years ago

mikketeus commented 2 years ago

Hi,

How to I loop through an array?

for array in msg['payload']: msg['payload'][array]['object'] = 'test' return msg;

mikketeus commented 2 years ago

Well, I did it the old way with and incremented a loop counter in the loop. That seems to work fine :)