I need to utillize logic within an each statement while iterating over the contents of 'extraData'. I would like to apply formatting based on a value within extraData. I cannot figure out the syntax to utilize #if within en each statement and have the if condition operate on the contents of the extraData.
For instance, suppose I have the structure below: {
item1: "value1", extraData: {
itemData: [
{ itemTypeID: 1, itemName: "ItemName1" },
{ itemTypeID: 2, itemName: "ItemName2" }
]
}
}
How can loop over the contents of itemData within extraData and format the data based on the itemTypeID?