Skip to content

Loop

Overview

Loops through structured data and runs child branches on it


Parameters

ParameterParameterValid BlocksRequired
Data Data to be looped over (array or object) Loop Input Data Block Group No
Content This block will be generated once for each entry in the loop Any MJML Component Block Group No
Current Item The current item being processed by the loop Data Structure Block Group Yes
Save Current Item Changes If on, any changes made to the Current Item Value will be saved back to the Data Structure at the end of each loop. Off by default for efficiency. Boolean Block Group No
Local Variable Display Colour The colour of the local variable in the tree. This is an indicator to help you visualise your loops, it doesn't impact your functions when they run. Colour Block Group Yes
Index The current index of the loop Number Block Group No