Skip to main content

Loop

Overview

Loops through structured data and runs child branches on it


Parameters

ParameterParameterValid BlocksRequired
DataData to be looped over (array or object)Loop Input Data Block GroupNo
ContentThis block will be generated once for each entry in the loopAny MJML Component Block GroupNo
Current ItemThe current item being processed by the loopData Structure Block GroupYes
Save Current Item ChangesIf 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 GroupNo
Local Variable Display ColourThe 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 GroupYes
IndexThe current index of the loopNumber Block GroupNo