For Each
This node lets you iterate over a list of items with a for each loop.
Imagine you have a list of ad objects, the budget of which needs to be increased by 10%. If you have a list, but you want to make changes to an ad object one by one, For Each node will help you to iterate over each of the objects. When you trigger start
, the first object will appear in the item
output socket. When you trigger next
, the next item will be in the output.
Take a look at the example below to understand better how you can use it:
Example
Input Fields
field | schema | explanation |
items | any | Input the list of objects that needs to be manipulated one by one. |
Output Fields
field | schema | explanation |
item | any | Item, which is ready to be manipulated. |
index | integer | Position of the item in the output. |
count | integer | Total number of objects in the list |
Video Tutorial
Relevant FAQs
Did this answer your question?
😞
😐
🤩
Last updated on October 11, 2022